Ubuntu Gutsy: Unable to install Rails- SOLVED

I am following the instructions here:

http://articles.slicehost.com/2007/11/2 … ql-and-ror">http://articles.slicehost.com/2007/11/23/ubuntu-gutsy-mysql-and-ror

and when I get to the point where I install rails using gem, I get the following:

xxxxxx@ubuntu:~$ sudo gem install rails

[sudo] password for xxxxx:

Bulk updating Gem source index for: http://gems.rubyforge.org/

ERROR: could not find rails locally or in a repository

some info on my current environment:

xxxxxx@ubuntu:~$ ruby -v

ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]

xxxxxx@ubuntu:~$ gem -v

1.1.0

xxxxxx@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:

  • :update_sources => true

  • :verbose => true

  • :benchmark => false

  • :backtrace => false

  • :bulk_threshold => 1000

  • REMOTE SOURCES:

  • http://gems.rubyforge.org

4 Replies

Try this just to see what output you get:

sudo gem sources
sudo gem search rails

Paste the output. Also see if rails has somehow gotten installed already:

rails -v

Thanks for your reply. Here are the outputs:

vbfischer@ubuntu:~$ sudo gem install rails

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

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

RubyGems 1.2.0 was released a few days ago:

http://rubyforge.org/forum/forum.php?forum_id=25353

Well, gosh darn it! That did it. Thanks.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct