keep getting error when trying to install gems on osx, undefined method `ord' for nil:NilClass

StackOverflow https://stackoverflow.com/questions/21880437

  •  13-10-2022
  •  | 
  •  

Question

I am using rvm on osx, I have only one version of ruby currently installed 2.0.0 and every gem install I try to run comes back with the same result:

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

please help

thanks

update:

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

No correct solution

OTHER TIPS

Seems to be a bug with ruby-2.x.x. Refer more here.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top