我在linux环境下成功安装了rvm和ruby。当我尝试安装 rail 时,我遇到以下错误:
$ gem install rails
/home/bathakarai/.rvm/rubies/ruby-1.9.3-p385/bin/gem:4: warning: Insecure world writable dir /home/bathakarai in PATH, mode 040777
ERROR: Could not find a valid gem 'rails' (>= 0) in any repository
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::EHOSTUNREACH: No route to host - connect(2) (http://rubygems.org/latest_specs.4.8.gz)
我的宝石版本是
1.8.25
rvm 版本是“rvm 1.18.19 (stable) by Wayne E. Seguin, Michal Papis [https://rvm.io/]”。
请告诉我为什么会发生此错误,以帮助我。