Sorry if I wasn't clear, but I used bundle install before trying to
update the database and it reported that my bundle was complete. I then
executed the db:migrate step and that's when I ran into problems --
apparently bundle install did not pull in the datanoise-actionwebservice
gem for some reason.
I just re-ran to bundle install and it again reported success, but
datanoise-actionwebservice does not appear in the "Using" list that
bundle install generates. On the other hand, if I look in my gems
directory I see that it is there.
One thing I neglected to mention earlier that may be important is that I
do not have root access where I am running Tracks, so I had to install
rubygems 1.8 locally.
Thanks for your help.
Alan
On 04/21/2012 06:10 PM, Reinier Balt wrote:
Do not use bundle exec rake gems:install, but use bundle install. It
should pull in the datanoise-actionwebservice gem for you.
Reinier
*Van:*[email protected]
[mailto:[email protected]] *Namens *Alan Ristow
*Verzonden:* zaterdag 21 april 2012 14:07
*Aan:* [email protected]
*Onderwerp:* [Tracks-discuss] Trouble upgrading to 2.1
Hi,
I tried to upgrade to Tracks 2.1 today. I ended up having to upgrade
rubygems in the process to get "bundle install" to complete
successfully -- no big deal, once I figured out how to update the Ruby
environment (Tracks is the only exposure to Ruby I have ever had).
Anyhow, where I really get stuck is in the database updating step. I run:
bundle exec rake db:migrate RAILS_ENV=production
And get:
Please install RDoc 2.4.2+ to generate documentation.
Missing these required gems:
datanoise-actionwebservice >= 0
You're running:
ruby 1.8.7.173 at /usr/local/bin/ruby
rubygems 1.8.23 at /home/ristow/ruby/gems/ruby/1.8,
/home/ristow/gems, /usr/local/lib/ruby/gems/1.8
Run `rake gems:install` to install the missing gems.
When I run "rake gems:install" I am given a warning about the rake
version and am told to try running with "bundle exec", so I do:
bundle exec rake gems:install
And get:
Please install RDoc 2.4.2+ to generate documentation.
DEPRECATION WARNING: Rake tasks in
vendor/plugins/open_id_authentication/tasks, vendor/plugins
/simple_ldap_authenticator/tasks, and vendor/plugins/translate/tasks
are deprecated. Use lib/tasks instead. (called from
/home/ristow/ruby/gems/ruby/1.8/gems/rails-2.3.14/lib/tasks/rails.rb:10)
gem install datanoise-actionwebservice --version ">= 0" --source
http://gems.github.com
ERROR: Error installing datanoise-actionwebservice:
activemodel requires activesupport (= 3.2.3)
I successfully installed activesupport outside of the bundle
environment, but that makes no difference. So I try:
bundle exec gem install activesupport
And get:
Successfully installed activesupport-3.2.3
1 gem installed
Installing ri documentation for activesupport-3.2.3...
unrecognized option `--encoding'
For help on options, try 'rdoc --help'
ERROR: While generating documentation for activesupport-3.2.3
... MESSAGE: exit
... RDOC args: --ri --op
/home/ristow/ruby/gems/doc/activesupport-3.2.3/ri --encoding UTF-8 lib
--title activesupport-3.2.3 Documentation --quiet
It says it successfully installed activesupport, though it failed to
build the docs, so then I re-run:
bundle exec rake db:migrate RAILS_ENV=production
However, I get exactly the same error as before, and end up in an
endless loop.
As I said before, I am not terribly experienced with Ruby, so I
wouldn't be surprised if I am simply overlooking something that is
obvious to all of you. However, after spending a couple of hours on it
I have become stuck.
I appreciate whatever help you can offer me. Let me know if you need
additional information for troubleshooting.
Alan
_______________________________________________
Tracks-discuss mailing list
[email protected]
http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss