Hello!
I cannot force a new application to run, it cannot update gems to the
required version. Could you suggest a solution?
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 7.10
Release: 7.10
Codename: gutsy
$ ruby -v
ruby 1.8.6 (2007-06-07 patchlevel 36) [i486-linux]
$ gem -v
1.2.0
$ sudo gem install rubygems-update
Successfully installed rubygems-update-1.3.1
1 gem installed
$ sudo gem update --system
Updating RubyGems
Nothing to update
$ script/console
Rails requires RubyGems >= 1.3.1 (you have 1.1.0). Please gem update --system
and try again.
after installing rubygems-update, just run
sudo update_rubygems
No success
$ sudo update_rubygems
sudo: update_rubygems: command not found
$ sudo update-rubygems
sudo: update-rubygems: command not found
well, that’s odd.
gem list
should show you
rubygems-update (1.3.1)
with that there should be the command
update_rubygems
available. if not check your gem-directory which can be found by
running
gem environment
for me it is “/usr/lib/ruby/gems/1.8/gems/rubygems-update-1.3.1/bin/
update_rubygems”
Ah, I guess the problem is in the paths!
I have changed the standard “gem” command to work by default with
Passenger. So, I guess, I should update the Passenger now?
Here is an output of your commands:
$ gem list -l
…
rubygems-update (1.3.1)
…
$ gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 1.2.0
- RUBY VERSION: 1.8.6 (2008-08-08 patchlevel 286) [i686-linux]
- INSTALLATION DIRECTORY: /opt/ruby-enterprise-1.8.6-20080810/lib/
ruby/gems/1.8
- RUBY EXECUTABLE: /opt/ruby-enterprise-1.8.6-20080810/bin/ruby
- EXECUTABLE DIRECTORY: /opt/ruby-enterprise-1.8.6-20080810/bin
- RUBYGEMS PLATFORMS:
- GEM PATHS:
- /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8
- GEM CONFIGURATION:
- REMOTE SOURCES:
Exactly, check your paths, or link the standard ruby, gem and rails
commands to the desired version…
Cheers, Sazima
- GEM PATHS:
- /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8
you should find the rubygems-update gem there. just go in, locate the
bin-directory and start update_rubygems from there.
still, to save yourself some trouble. look into your path-variables
and make sure everything is working correctly. otherwise you’ll be
back here very soon with an other issue.
It’s very strange, but I still cannot force the update_rubygems to run
correctly.
I have tried the full path, but failed:
$ sudo /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/
rubygems-update-1.3.1/bin/update_rubygems
Error: Cannot find RubyGems Update Path!
RubyGems has already been updated.
The rubygems-update gem may now be uninstalled.
E.g. gem uninstall rubygems-update
And I have found a similar problem here:
http://www.ruby-forum.com/topic/149288#662187
But unfortunately no new solution…
Have you tried downloading the rubygems 1.3.1 source
from http://rubyforge.org/frs/?group_id=126 , unpacking,
then running “ruby setup.rb” as root in that directory?
–
Rails Wheels - Find Plugins, List & Sell Plugins -
http://railswheels.com