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!
- try to add -V (upper-case) in the parameter, to show more detail of what is downloading
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.