# Can't Install Rails. Can any one help Please!

**URL:** <https://www.ruby-forum.com/t/cant-install-rails-can-any-one-help-please/158925>\
**Category:** Rails\
**Created:** [January 29, 2009, 2:14pm UTC](https://www.ruby-forum.com/t/cant-install-rails-can-any-one-help-please/158925 "2009-01-29T14:14:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonbaer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/54ee81/32.png) [@jonbaer](https://www.ruby-forum.com/u/jonbaer)\
**Post date:** [January 29, 2009, 2:14pm UTC](https://www.ruby-forum.com/t/cant-install-rails-can-any-one-help-please/158925/1 "2009-01-29T14:14:50Z")

</div>

I keep getting an error message when i try an install rails. I am using  
xp.These are the steps i took.

1. Download the One-click ruby installer from rubyforge  
[http://rubyforge.org/frs/?group\_id=167](http://rubyforge.org/frs/?group_id=167) (warning this is a big file!).  
The one I used was ruby186-25.exe but there may be a later version  
available. To be able to run the whole environment from a USB stick Iâ€™d  
really recommend you have about 500MB free (maybe itâ€™s time to buy a new  
stick?)

2. Double-click on the installer, after clicking next a few times, a  
screen like the one shown below is displayed (pic of installation  
screen)

3.Ensure you install on your USB stick, not the C drive (check the drive  
letter, as shown. Mine is J:, yours may vary)

i used C drive, was told to do it on usb to because was doing it on  
network.

1. Once Ruby is installed, open a cmd prompt (enter cmd into the â€˜runâ€™  
box from the start menu) change to your ruby directory (e.g. j:\ruby )  
and enter the follow command:

2. gem install rails -y

3. You may need to add the ruby directory to your system path, the  
setenv.bat file discussed in class will do this â€“ the command is:

4. set path=%PATH%;j:\ruby\bin;

5. Remember to change the drive letter (j: in the example above) to  
match the letter assigned to your USB stick. This will probably be  
different for each system â€“ itâ€™s a windows foible â€“ what a wonderful  
system 🙂 (maybe you should try Linux? â€“ ok Rant over.) This is why we  
suggested in the lecture that you put the command above in its own file,  
which we called setenv.bat, so that itâ€™s easy to change

6. The gem command should install rails, see below for a database

I got stuck on step 5 and i also used ruby186-27\_rc2.exe  
"error: [http://gems.rubyforge.org/](http://gems.rubyforge.org/) does not appear to be a repository

error: could not find gem rails locally or in a repository"

Can anyone help please!

---

<div class="post-metadata">

**Author:** ![jonbaer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/54ee81/32.png) [@jonbaer](https://www.ruby-forum.com/u/jonbaer)\
**Post date:** [January 29, 2009, 4:31pm UTC](https://www.ruby-forum.com/t/cant-install-rails-can-any-one-help-please/158925/2 "2009-01-29T16:31:05Z")

</div>

Try this:

gem install rails --source [http://gems.rubyforge.org](http://gems.rubyforge.org)

This won’t fix the problem with Gem though.  
What is the Gem environment?

gem env
