Installing Rails

Having a god-awful time installing Rails. I started with the
instructions found on this page:

I get the following error:

vbfischer@ubuntu:~$ sudo gem install rails
[sudo] password for vbfischer:
Bulk updating Gem source index for:
Updating metadata for 13 gems from

ERROR: could not find rails locally or in a repository

I’m running with Ubuntu Gutsy 8.04 LTS

I have followed the instructions in this thread:

but none of the suggestions there helped.

This is the output from several commands suggested in other threads:
vbfischer@ubuntu:~$ ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]

vbfischer@ubuntu:~$ gem -v

vbfischer@ubuntu:~$ gem environment
RubyGems Environment:

  • RUBYGEMS VERSION: 1.1.0 (1.1.0)
  • RUBY VERSION: 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]
  • INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
  • RUBY EXECUTABLE: /usr/bin/ruby1.8
    • ruby
    • x86-linux
    • /usr/lib/ruby/gems/1.8

vbfischer@ubuntu:~$ sudo gem sources

vbfischer@ubuntu:~$ sudo gem search rails

*** LOCAL GEMS ***

vbfischer@ubuntu:~$ rails -v
-bash: rails: command not found

Any other suggestions?


Did you install gems via apt-get or aptitude? Or did you download from

I also have an ubuntu distro and have a heck of a time getting gems
and ubuntu to play nice.

I blogged about it here:


Thanks for the reply Anita.

I installed from source. Could it be the version I installed? I used
1.1.0, but in your article, you were installing 1.1.1 (I noticed
there’s a 1.2.0 up there now)?

I don’t know if it is the version or not.

When did you install rubygems? I do think 1.1.1 has been available
for a while. But I don’t know when exactly.

And 1.2 just was released last night. I have no info on it and want
to hear a review before I update my rubygems since when they break I
have to do a lot of reloading of stuff.

It is possible your problems have nothing to do with your gems
install. It is just one of the few problems that I know something
about and ubuntu is vulerable to that particular issue.

Hopefully someone else on the list more knowledgeable than myself can
help you from here.


Congratulations Bryce.

Glad you found a solution.


On Mon, Jun 23, 2008 at 11:28 PM, Bryce Fischer

Well, someone in another group suggested downloading and installing
1.2 of Rubygems. That seemed to have worked!

Thanks. And thanks for your suggestions above. Now on to writing my
first RoR’s app