It’s just data

RubyGems 1.3.1 on Ubuntu 8.10

David Heinemeier Hansson: you can install Rails 2.2 through RubyGems. We now require RubyGems 1.3.1, so be sure to update that first


$ gem -v
$ gem update --system
ERROR:  While executing gem ... (RuntimeError)
    gem update --system is disabled on Debian. RubyGems can be updated \
    using the official Debian repositories by aptitude or apt-get


$ wget
$ tar xzf rubygems-1.3.1.tgz
$ cd rubygems-1.3.1
$ sudo ruby setup.rb
$ gem -v
$ sudo gem install rails
Successfully installed rake-0.8.3
Successfully installed activesupport-2.2.2
Successfully installed activerecord-2.2.2
Successfully installed actionpack-2.2.2
Successfully installed actionmailer-2.2.2
Successfully installed activeresource-2.2.2
Successfully installed rails-2.2.2
7 gems installed
Installing ri documentation for rake-0.8.3...
Installing ri documentation for activesupport-2.2.2...
Installing ri documentation for activerecord-2.2.2...
Installing ri documentation for actionpack-2.2.2...
Installing ri documentation for actionmailer-2.2.2...
Installing ri documentation for activeresource-2.2.2...
Installing RDoc documentation for rake-0.8.3...
Installing RDoc documentation for activesupport-2.2.2...
Installing RDoc documentation for activerecord-2.2.2...
Installing RDoc documentation for actionpack-2.2.2...
Installing RDoc documentation for actionmailer-2.2.2...
Installing RDoc documentation for activeresource-2.2.2...

On Ubuntu this worked for me:
  sudo gem install rubygems-update
  sudo update_rubygems

Posted by Zach at

What happens when Ubuntu wants to update rubygems?

Posted by Joe at

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

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
Posted by Sam Ruby at

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
$ sudo gem install rails

I also seem to need libopenssl-ruby installed in order to run script/console.

Posted by Sam Ruby at

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

What version of Ruby are people using on Ubuntu 8.10 for Rails development? Are people using the supplied 1.8.7? Or is everyone compiling 1.8.6, which is the recommend version for Rails 2.2?

Posted by Tony at

I don’t know about other systems, but for me, this is what works:

sudo gem install rubygems-update
sudo update_rubygems

Posted by Bob Aman at

There is a mistake in your blog posting:

$ cd rubygems-1.3.1.tgz

should read

$ cd rubygems-1.3.1

Posted by David Beckwith at

Fixed.  Thanks!

Posted by Sam Ruby at


Posted by Mikhailov Anatoly at

I can’t even begin to wrap my head around why Rubygems is included in any package management system. It’s well known that it doesn’t play nice with others (hence an official position statement by the Debian guys), so why include it at all? The same problem affects OS X, which includes Rubygems and a handful of gems.

So we can either install a duplicate copy in a different path, or update the old version behind the back of whichever package system you use. Both seem like pretty shitty solutions, to me. Sure it might initially be handy, but it’s pretty damn confusing the first time you upgrade.

Posted by Nathan de Vries at

Did anyone make a bug report?

Posted by Scott Robinson at

Been there, done that.  At least in this case, the code is clearly BAD.

Posted by Sam Ruby at

Install Rails 2.2.2 to ubuntu 8.10

Detail link sudo atp-get install ruby rubygems setup http_proxy env, if you gem update through proxy http_proxy=http://proxy serverIP:80/;export http_proxy you can vi .profile for current user $ sudo gem install update_rubygems $ cd...

Excerpt from Learning RoR at

I tried to update by hand

~$ sudo apt-get install ruby-complete rubygems1.8
~$ sudo gem install rubygem-update
~$ sudo /var/lib/gems/1.8/bin/update_rubygems

it seems to work,
~$ gem list
doesnt work

doesn’t show anything.

Will see what a restart does to fix it.

(also the big red “spammers will get told off” alert seems kind of aggressive.
most spammers are surely bots, and don’t take notice of such signs?)

Posted by Matthew Rudy Jacobs at

Even you are using Ubuntu Intrepid Ibex 8.10, better to downgrade from Ruby 1.8.7 to 1.8.6, as usufull for more production servers for today.
I have written the article about smart downgrade by using repo from Ubuntu Hardy:

Posted by Mikhailov Anatoly at

[link] - intrepid debs with rubygems 1.3.1

Posted by underley at

I don’t know about you guys, but I could install rails 2.2.2 using gem 1.2.0 un kubuntu 8.04

I feel like upgrading anyway after reading your post, but it does not seems it was required.

Posted by Mathieu Jobin at

Instalando e usando o Capistrano no Ubuntu Linux - Parte 1

Hoje resolvemos testar o Capistrano [1] como nova solução para fazer deploy automático das nossas aplicações web do Labase [2]. Partindo de um Ubuntu 8.04 sem o Ruby [3] instalado, o procedimento é o seguinte: $ sudo apt-get install ruby irb rdoc...

Excerpt from LifeAtMyMind at

By: Ben Wagaman

I am current using Ubuntu 8.10. For me, if I ran the commands, rubygems would stay at 1.2 even though it looked like it “updated successfully” If you are trying to update ruby gems on Ubuntu, you may need to install it manually. Sam Ruby has a good...

Excerpt from Comments on: Rails 2.1.2 and 2.2RC1: Update Your RubyGems at


railsを2.2.2にしたら empty?が未定義とかいわれた .Text - Error encountered なんか、2.1.2 にしたら script/generate ができなくなりました。 ruby script/generate model hoge ってやると undefined method `empty?` for /_generator$/:Regexp ってなります。 まあ、エ...

Excerpt from くりまるwebつくる at

legend! porting stuff across between Mac OS X (10.5) and opensuse AND ubuntu and this trick saved my bacon.


Posted by Joe at

sudo gem install rubygems-update  This worked for me perfectly.

Thank you  Bob Aman for the post.

Posted by ksjyothi at

I found an easier way to update to 1.3.1 without any bugs
Install Ruby
this will install ruby1.8

sudo apt-get install ruby

Install ruby1.9
sudo apt-get install ruby1.9

Install rubygems 1.9
$  sudo apt-get install rubygems1.9

$ gem -v
$ 1.2.0

Install rails
sudo gem install rails

Update gem
$ sudo gem install rubygems-update
[sudo] password for :
Successfully installed rubygems-update-1.3.1
1 gem installed
$ gem -v

$ rails -v
Rails 2.2.2

Posted by ksjyothi at

RubyGems 1.3.1 for Ubuntu 8.10

Some time ago Rails 2.2 was released. Since than the framework requires rubygems 1.3.1 to run. Unfortunately Ubuntu 8.10 only has rubygems 1.2.0 in its repositories. A quick google search didn’t yield a good solution for this. Everyone is...

Excerpt from tail -f log/development.log at

You da man. Thanks for the post, it was exactly the issue at hand.

Posted by Mike at

after updating gem using the update-rubygems gem, it was impossible to show “gem list”

is the only output.

Posted by Boyang at

after updating gem using the update-rubygems gem, “gem list” show only an empty list.

Posted by Boyang at


Another anecdote about my inability to handle Ubuntu for the delight of the knowledgeable readers: Since gem 1.3.1 is not out for Ubuntu, rails won’t start the server. Therefore I tried to manually update gem. And since gem 1.3.1 has a totally...

Excerpt from Random Strings at

최근 삽질 현황

우분투를 가지고 노는 재미가 쏠쏠하다.. windows xp 는 쓰면서도 살짝 재미는 없었는데.. 우분투는 새로운 OS라 좀 재밌는 것 같다..   아직도 windows 사용하니? (내가 쓴말이지만 와.. 이거 진짜 웃긴다.. ㅡㅡ;;)   하면서 살짝 자랑같이 말하고 싶기도 하지만.. ㅡㅡ;; 그럴려면 꽤 많은 시간이 필요할 듯 하다.. ㅡㅡ;; (이게 젤 삽질 안하는 리눅스라니.. 그나마 다행)...

Excerpt from Back In the Days.. at

Chaps - you are missing something.

On Debian some common gems like rails are packaged, these go in the standard debian gem home of /var/lib/gems and is the setup for gem 1.2.0.

When you do the /var/lib/gems/1.8/bin/update_rubygems to go to 1.3.1 the update will ignore the debian gem home and use a combination of /usr/lib/gem and $HOME/.gem as the GEM_PATHs so any gems installed via apt-get or updated by the debian system will not be seen by gem list thereafter.  The GEM_PATH is realised by ruby code somewhere in the 1.3.1 ruby codebase.  I have read posts where debian maintainers complain about this.

If you read default.rb (I am not at my ubuntu box as I write this) it seems that the rubygems guys know about the debian /var/lib/gem path but don’t adjust the GEM_PATH to include the debian path.  We are, at the moment, pawns in a game between debian maintainers and rubygems devs.  I am going to try a .bashrc solution that tries to append the debian path to the output of ‘gem env path’.  On a dev box, I hate having to do sudo gem install to get gems for user space stuff.

I think that on a debian box it should be like this...
sudo gem install xxx puts the gem in /var/lib/gem/... (if the gem exists in $HOME/.gem/ then move it to /var/lib/gem)
gem install xxx puts the gem in $HOME/.gem/ (unless the gem already exists in /var/lib/gem)

and gems list show the gems from both locations

Is anyone else pissed off with this?

Posted by Guy Boertje at

You missed something important: after sudo ruby setup.rb in kubuntu 8.10
you cannot run gem

gem -v
The program ‘gem’ can be found in the following packages:

Try: sudo apt-get install <selected package>
bash: gem: command not found

It is gem1.8 -v

Please explain how to fix anyone? Think it has something to do with ln -s

Posted by Sonder at

Sonder: update-alternatives --config gem

Posted by Marlin at


Excerpt from Delicious/mcandre/rubygems at

Instalando Community Engine (1)

Community Engine es un plugin de Ruby On Rails . En otras palabras, es una extensión de Redes Sociales para un Framework Web programado por completo en Ruby . Y Ruby, es un lenguaje de programación derivado de SmallTalk , con lo que quienes saben...

Excerpt from Anotaciones de Cristian S. Rocha at

Nice. This one works as well:

Posted by wojtek at

Follow the instructions on Ubuntu’s wiki. 1.3.1

Posted by Nick Hammond at

Social comments and analytics for this post

This post was mentioned on Twitter by marcheiligers: Update rubygems on Ubuntu [link] and [link]... [more]

Trackback from uberVU - social comments


Answer by pierr for Any other ways to install heroku except gem install

Updating the gem to version 1.3.6 seem solve the problem. However, gem update --system does not work on Ubuntu platforms, and apt-get install rubygems1.8 always bring you to version 1.2.0 . Here is the trick to update your gems to latest one,1.3.6,...

Excerpt from Any other ways to install heroku except gem install - Stack Overflow at

Install Watir

nstalling from behind a proxy If you are installing from behind a proxy, be sure to add the following to the end of any gem install or gem update command: -p http: //your-proxy-server-name:your-proxy-server-port For example, if your proxy server...

Excerpt from watir Tutor and Interview Questions at

在 Ubuntu 8.04 上裝 Redmine 0.9.x

關鍵在於 Redmine 0.9.x 需要 rails 2.3.5, 而 rails 2.3.5 需要 rubygems v1.3.1 。但是 Ubuntu 8.04 上的 rubygems 不夠新, 也無法透過 gem 自己昇級 (gem update --system), Ubuntu 會跑出禁止 gem 自己昇級的訊息。之前才讀到 《RubyGem is from Mars, AptGet is from Venus》 , 想說系統管理和開發者戰得真激烈, 結果馬上就被這場戰爭掃到。...

Excerpt from fcamel 技術隨手記 at


Ubuntuというよりdebian系の話ですが、単純にapt-getでrubyおよびrubygemsをインストールした場合、そのあと sudo gem update --system としても gem update --system is disabled on Debian. RubyGems can be updated¥ みたいなエラーとなってしまいます。aptでの管理と矛...

Excerpt from masa_wの日記 at

Como instalar RubyGems 1.3.1 en Ubuntu 8.04 y 8.10

En este link se indica como instalar RubyGems 1.3.1 en Ubuntu 8.10, yo lo he seguido para instalarlo en Ubuntu 8.04 y ha funcionado: [link] He tenido que añadir en el fichero...

Excerpt from Blog de JJ at


I was working on getting the Cewl tool by digininja working, but had a number of troubles with Ruby. This was a virgin ubuntu 8.10 system. The solution was found here -> [link] I...

Excerpt from TrojaTech Tips and Articles at

I may ultimately need to black-list such ids.  If everybody uses the same URI, I can’t tell them apart.

Posted by Martin Atkins at

I’m anxious to uncover this page. I need to thank you for ones time for this particularly wonderful read!! I positively to a great degree cherished all parts of it and I moreover have you saved to fav to look at new information in your site. Classic Rock Cover Band Colorado

Posted by seoexpert at

It is ideal time to make a few arrangements for the future and the time has come to be glad. I’ve perused this post and in the event that I might I be able to want to recommend you few fascinating things or tips. Maybe you could compose next articles alluding to this article. I need to peruse more things about it! instagram beğeni satın al

Posted by Merck SEO at

Add your comment