Already a member? Log in

Sign up with your...

or

Sign Up with your email address

Add Tags

Duplicate Tags

Rename Tags

Share This URL With Others!

Save Link

Sign in

Sign Up with your email address

Sign up

By clicking the button, you agree to the Terms & Conditions.

Forgot Password?

Please enter your username below and press the send button.
A password reset link will be sent to you.

If you are unable to access the email address originally associated with your Delicious account, we recommend creating a new account.

URL: http://intertwingly.net/blog/2008/11/23/RubyGems-1-3-1-on-Ubuntu-8-10

Sam Ruby: RubyGems 1.3.1 on Ubuntu 8.10

What happens when Ubuntu wants to update rubygems?

Posted by Joe at 19:56

That’s a better error message than I get on Hardy.

$ sudo gem update --system

Updating RubyGems

Nothing to update

$ sudo gem update --debug --system

Exception `NameError' at /usr/local/lib/site_ruby/1.8/rubygems/command_manager.rb:134 - uninitialized constant Gem::Commands::UpdateCommand

Updating RubyGems

Nothing to update

Zach’s suggestion worked for me.

Posted by James Abley at 20:58

Upgrading using

apt-get install rubygems

on 8.10 only brings you up to 1.2.0.

Using update_rubygems directly on a virgin 8.10 system doesn’t work for me, but does provide an alternate means to get access to a

setup.rb

that does do the trick.

$ sudo gem install update_rubygems $ sudo update_rubygems sudo: update_rubygems: command not found $ sudo /var/lib/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 $ cd /var/lib/gems/1.8/gems/rubygems-update-* $ sudo ruby setup.rb $ gem -v 1.3.1

Posted by Sam Ruby at 21:00

OK, I had better luck with the following:

$ sudo gem install update_rubygems $ cd /var/lib/gems/1.8/bin $ sudo ./update_rubygems $ gem -v 1.3.1 $ sudo gem install rails

I also seem to need

libopenssl-ruby

installed in order to run

script/console

.

Posted by Sam Ruby at 23:28

Mon 24 Nov 2008

In order to avoid conflicts with system updates wouldn’t it make more sense to change GEM_HOME to allow non-super install? I would post a link with more info but I am on my phone.

Posted by Matt Haley at 00:11

What version of Ruby are people using on Ubuntu 8.10 for Rails development? Are people using the supplied 1.8.7?

Share It With Others!

Comments

wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz

update rubygems

sudo gem install rubygems-update
sudo update_rubygems

should help with automating rubygem 1.3.1 installation...which is always a pain

ruby setup.rb

rails 2.2 installation in Intrepid Ibex 8.10.

gem update --system is disabled on Debian. gem competes with apt-get

cd /var/lib/gems/1.8/bin

actualizar ruby gems en ubuntu o debian

$ sudo ruby setup.rb $ gem -v

$ gem -v 1.3.1 $ sudo gem install rails Successfully installed rake-0.8.3 Successfully installed activesupport-2.2.2

twtw

System Librarian