Forum: Ruby on Rails gem update problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
8ea35d7f8980ea114754babcab8189af?d=identicon&s=25 Konstantin (Guest)
on 2009-01-09 07:37
(Received via mailing list)
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.
80e4cb97cae5c8d745f72337d93fd8f2?d=identicon&s=25 MaD (Guest)
on 2009-01-09 09:29
(Received via mailing list)
after installing rubygems-update, just run
  sudo update_rubygems
8ea35d7f8980ea114754babcab8189af?d=identicon&s=25 Konstantin (Guest)
on 2009-01-09 13:40
(Received via mailing list)
No success :(
$ sudo update_rubygems
sudo: update_rubygems: command not found
$ sudo update-rubygems
sudo: update-rubygems: command not found
80e4cb97cae5c8d745f72337d93fd8f2?d=identicon&s=25 MaD (Guest)
on 2009-01-09 13:55
(Received via mailing list)
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"
8ea35d7f8980ea114754babcab8189af?d=identicon&s=25 Konstantin (Guest)
on 2009-01-09 14:09
(Received via mailing list)
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:
    - ruby
    - x86-linux
  - GEM PATHS:
     - /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - :sources => ["http://gems.rubyforge.org/", "http://
gems.github.com"]
  - REMOTE SOURCES:
     - http://gems.rubyforge.org/
     - http://gems.github.com
80e4cb97cae5c8d745f72337d93fd8f2?d=identicon&s=25 MaD (Guest)
on 2009-01-09 14:57
(Received via mailing list)
>   - 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.
Fac81a9d95c81d817a2debb6f717f3ac?d=identicon&s=25 Sazima (Guest)
on 2009-01-09 14:59
(Received via mailing list)
Exactly, check your paths, or link the standard ruby, gem and rails
commands to the desired version...

Cheers, Sazima
8ea35d7f8980ea114754babcab8189af?d=identicon&s=25 Konstantin (Guest)
on 2009-01-09 18:50
(Received via mailing list)
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....
C64e63b70be7dfed8b0742540b8b27e5?d=identicon&s=25 Mark Reginald James (Guest)
on 2009-01-09 21:38
(Received via mailing list)
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
This topic is locked and can not be replied to.