Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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!

share|improve this question
add comment

3 Answers 3

up vote 41 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.

share|improve this answer
7  
Thanks! I guess I was expecting an immediate response of some kind like with apt-get. –  bsamek 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
    
@Sathya Wow,+++ This really is excellent answer. +++✔ –  Software Jun 20 '13 at 13:03
add comment

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
share|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. –  Nathan Chere Aug 4 '11 at 5:57
1  
It was using so little CPU that I still didn't think it was doing anything. I tried -v but that didn't work - had to be uppercase! –  cwd Feb 11 '13 at 15:37
    
seriously thank you, thought my gems was broken –  Jessie Frazelle Aug 6 '13 at 21:39
    
That's what I am looking for! –  Frank Fang Mar 30 at 4:36
add comment
  1. try to add -V in the parameter, to show more detail of what is downloading
  2. if it still very slow or pending somewhere, it normally indicates a low internet connection to the rubygems.org site(showing in the output window). you can try to update the source of the gem using, by

    gem source -r https://rubygems.org/

    gem source -a "your new source site"

in my country, after I switch to http://ruby.taobao.org, it only takes 1min to complete the installation.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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