Installing Rails

Having a god-awful time installing Rails. I started with the
instructions found on this page:
http://articles.slicehost.com/2007/11/23/ubuntu-gutsy-mysql-and-ror

I get the following error:

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

complete
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:
http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/301950cb55487cb5/dd141cfb9563ee42

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
1.1.0

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
  • RUBYGEMS PLATFORMS:
    • ruby
    • x86-linux
  • GEM PATHS:
    • /usr/lib/ruby/gems/1.8
  • GEM CONFIGURATION:
  • REMOTE SOURCES:

vbfischer@ubuntu:~$ sudo gem sources
*** CURRENT SOURCES ***

http://gems.rubyforge.org
http://gems.rubyonrails.org

vbfischer@ubuntu:~$ sudo gem search rails

*** LOCAL GEMS ***

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

Any other suggestions?

Thanks.

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

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: http://www.rubyhomies.com/tips

HTH,
Anita.

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.

Cheers,
Anita.

Congratulations Bryce.

Glad you found a solution.

:slight_smile:
Anita.

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