尝试在osx上安装gems时出现错误,未定义的方法`ord'为nil:NilClass

时间:2014-02-19 12:25:47

标签: ruby rubygems rvm

我在osx上使用rvm,我目前只安装了一个版本的ruby 2.0.0 我尝试运行的每个gem安装都会返回相同的结果:

guys-MacBook-Pro:guy guy$ rvm use
Using /Users/guy/.rvm/gems/ruby-2.0.0-p353

guys-MacBook-Pro:guy guy$ gem install proxylocal
ERROR:  While executing gem ... (NoMethodError)
undefined method `ord' for nil:NilClass

请帮助

感谢

更新:

guys-MacBook-Pro:guy guy$ gem install -V proxylocal
GET https://api.rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
GET https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
HEAD https://api.rubygems.org/api/v1/dependencies
302 Moved Temporarily
HEAD https://bundler.rubygems.org/api/v1/dependencies
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=proxylocal
302 Moved Temporarily
GET https://bundler.rubygems.org/api/v1/dependencies?gems=proxylocal
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=bert
302 Moved Temporarily
GET https://bundler.rubygems.org/api/v1/dependencies?gems=bert
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=eventmachine
302 Moved Temporarily
GET https://bundler.rubygems.org/api/v1/dependencies?gems=eventmachine
200 OK
ERROR:  While executing gem ... (NoMethodError)
 undefined method `ord' for nil:NilClass

1 个答案:

答案 0 :(得分:0)

似乎是带有ruby-2.x.x的bug。请参阅更多here