View Full Version : [ubuntu] Help! Can't install ruby on rails

March 23rd, 2010, 06:14 AM

I'm trying to install ruby on rails on Ubuntu 9.10. I'm following the instructions on this site:

However, when I try to install Rails I get an error:

$ sudo gem install rails
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
timed out (http://gems.rubyforge.org/gems/rake-0.8.7.gem)

It seems like gem can't access http://gems.rubyforge.org/gems/rake-0.8.7.gem for some reason, but when I try to go directly to that address I get the option to download it. Any ideas how to get around this problem?

I'm thinking if I can somehow tell gem to look for the file locally I can download it and install rails that way.

Please help!


March 23rd, 2010, 09:10 AM

same problem here.
You can download the gems and install them locally.
For that you need to install them like this:

sudo gem install rake-0.8.7.gem

March 23rd, 2010, 09:42 AM
Found another solution for this problem.
If you are using virtual box, you have to switch the virtual box network adapter from NAT to Brigded and everything should work fine.

March 24th, 2010, 03:40 AM
AHA! Switching to Bridged did the trick! Thanks a lot!