I installed Ruby and RubyGems on Ubuntu 10.04. Ruby is version 1.8.7. Gems is version 1.3.7. When I try sudo gem install rails, nothing happens. It just hangs forever. What am I missing? Thanks!

link|improve this question

feedback

3 Answers

up vote 11 down vote accepted

It'll take quite some time to install rails - there are lot of dependencies and these need to be downloaded - if you have a slow connection, just wait for a bit.

link|improve this answer
2  
Thanks! I guess I was expecting an immediate response of some kind like with apt-get. – paracaudex Sep 18 '10 at 23:48
I was on the same boat as you - thought it had given up but it was processing in the background. – Sathya Sep 18 '10 at 23:54
feedback

Try adding -V (upper case) to the end of the install command, if forces the command to be verbose, so you can see things going on. Eg:

sudo gem install rails -V
link|improve this answer
Another thing to consider... open Task Manager (or equivalent - I'm using Xubuntu) and view process by CPU usage. That's the only indication I had that gem was actually doing anything until it eventually finished. – FerretallicA Aug 4 '11 at 5:57
feedback

It hangs forever ? Wait until the program terminates, and see the output log.

And until you do the Verbosity on with -V, it shows nothing, and seems like the system is hung up.

link|improve this answer
And if some errors like no such file to load pop out, try installing some dependencies. $ sudo apt-get install ruby1.8-dev – Dhruba Adhikari Sep 22 '11 at 16:41
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.