# Installing Rails

**URL:** <https://www.ruby-forum.com/t/installing-rails/141155>\
**Category:** Rails\
**Created:** [June 22, 2008, 11:42pm UTC](https://www.ruby-forum.com/t/installing-rails/141155 "2008-06-22T23:42:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vbfischer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5f8ce5/32.png) [@vbfischer](https://www.ruby-forum.com/u/vbfischer)\
**Post date:** [June 22, 2008, 11:42pm UTC](https://www.ruby-forum.com/t/installing-rails/141155/1 "2008-06-22T23:42:43Z")

</div>

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](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/](http://gems.rubyforge.org/)  
Updating metadata for 13 gems from [http://gems.rubyonrails.org/](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](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:
  - :update\_sources =\> true
  - :verbose =\> true
  - :benchmark =\> false
  - :backtrace =\> false
  - :bulk\_threshold =\> 1000
  - :sources =\> [“[http://gems.rubyforge.org](http://gems.rubyforge.org)”, “http://  
[gems.rubyonrails.org](http://gems.rubyonrails.org)”]

- REMOTE SOURCES:
  - [http://gems.rubyforge.org](http://gems.rubyforge.org)
  - [http://gems.rubyonrails.org](http://gems.rubyonrails.org)

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

[http://gems.rubyforge.org](http://gems.rubyforge.org)  
[http://gems.rubyonrails.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.

---

<div class="post-metadata">

**Author:** ![vbfischer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5f8ce5/32.png) [@vbfischer](https://www.ruby-forum.com/u/vbfischer)\
**Post date:** [June 22, 2008, 11:53pm UTC](https://www.ruby-forum.com/t/installing-rails/141155/2 "2008-06-22T23:53:51Z")

</div>

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

HTH,  
Anita.

---

<div class="post-metadata">

**Author:** ![vbfischer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5f8ce5/32.png) [@vbfischer](https://www.ruby-forum.com/u/vbfischer)\
**Post date:** [June 23, 2008, 12:44am UTC](https://www.ruby-forum.com/t/installing-rails/141155/3 "2008-06-23T00:44:49Z")

</div>

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)?

---

<div class="post-metadata">

**Author:** ![vbfischer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5f8ce5/32.png) [@vbfischer](https://www.ruby-forum.com/u/vbfischer)\
**Post date:** [June 23, 2008, 1:28am UTC](https://www.ruby-forum.com/t/installing-rails/141155/4 "2008-06-23T01:28:40Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![vbfischer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5f8ce5/32.png) [@vbfischer](https://www.ruby-forum.com/u/vbfischer)\
**Post date:** [June 24, 2008, 5:40am UTC](https://www.ruby-forum.com/t/installing-rails/141155/5 "2008-06-24T05:40:29Z")

</div>

Congratulations Bryce.

Glad you found a solution.

🙂  
Anita.

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

---

<div class="post-metadata">

**Author:** ![vbfischer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5f8ce5/32.png) [@vbfischer](https://www.ruby-forum.com/u/vbfischer)\
**Post date:** [June 24, 2008, 5:29am UTC](https://www.ruby-forum.com/t/installing-rails/141155/6 "2008-06-24T05:29:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![vbfischer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5f8ce5/32.png) [@vbfischer](https://www.ruby-forum.com/u/vbfischer)\
**Post date:** [June 24, 2008, 1:52pm UTC](https://www.ruby-forum.com/t/installing-rails/141155/7 "2008-06-24T13:52:29Z")

</div>

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