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

Reply via email to