使用 RVM 安装 一般的问题应该不存在: 使用的 ZSH .zshrc 已经加上了环境变量 rvm requirements 上要的都装了 但是 安装 1.9.3 和 1.9.2 都报这个错
Installing rubygems-1.8.24 for ruby-1.9.2-p320 ...
Error running 'env GEM_PATH=/Users/tuliang/.rvm/gems/ruby-1.9.2-p320:/Users/tuliang/.rvm/gems/ruby-1.9.2-p320@global:/Users/tuliang/.rvm/gems/ruby-1.9.2-p320:/Users/tuliang/.rvm/gems/ruby-1.9.2-p320@global GEM_HOME=/Users/tuliang/.rvm/gems/ruby-1.9.2-p320 /Users/tuliang/.rvm/rubies/ruby-1.9.2-p320/bin/ruby /Users/tuliang/.rvm/src/rubygems-1.8.24/setup.rb', please read /Users/tuliang/.rvm/log/ruby-1.9.2-p320/rubygems.install.log
Installation of rubygems did not complete successfully.
打开 rubygems.install.log 后显示
/Users/tuliang/.rvm/rubies/ruby-1.9.2-p320/bin/ruby
/Users/tuliang/.rvm/rubies/ruby-1.9.2-p320/bin/ruby: No such file or directory -- /Users/tuliang/.rvm/src/rubygems-1.8.24/setup.rb (LoadError)