error on installing gem, rubinius 2.0.0rc1 #2009

Closed
stuartnelson3 opened this Issue Nov 13, 2012 · 4 comments

3 participants

@stuartnelson3

I installed rubinius with rvm. When I try to install a gem, it successfully installs the gems but fails on the ri documentation:

Stuarts-MacBook-Pro:~ stuartnelson3$ rbx gem install sinatra-authentication
Fetching: rufus-tokyo-1.0.7.gem (100%)
Fetching: yajl-ruby-1.1.0.gem (100%)
Building native extensions.  This could take a while...
Fetching: sinbook-0.1.9.gem (100%)
Fetching: rack-flash-0.1.2.gem (100%)
Fetching: sinatra-authentication-0.4.1.gem (100%)
Successfully installed rufus-tokyo-1.0.7
Successfully installed yajl-ruby-1.1.0
Successfully installed sinbook-0.1.9
Successfully installed rack-flash-0.1.2
Successfully installed sinatra-authentication-0.4.1
5 gems installed
Installing ri documentation for rufus-tokyo-1.0.7...
Installing ri documentation for yajl-ruby-1.1.0...
Installing ri documentation for sinbook-0.1.9...
Installing ri documentation for rack-flash-0.1.2...
Installing ri documentation for sinatra-authentication-0.4.1...
ERROR:  While executing gem ... (ArgumentError)
  Missing or uninitialized constant: Encoding

I've tried this on multiple gems and always receive the same ArgumentError. I can get around this issue by doing rbx gem install [whatever-gem-name] --no-ri, but it would be nice if I could get the documentation. Copying over a gemset where all the gems from a different ruby version where all the gems were installed with documentation to rbx works.

@Gibheer

Can you post the output of rbx --version too?

@brixen
Rubinius member

Duplicates #2002. These are encoding issues. I'll fix them shortly.

@stuartnelson3 don't copy gems from other Ruby implementations, especially not C-extension gems. They have to be compiled by Rubinius.

@brixen
Rubinius member

This works for me locally. Could you please check with master HEAD.

@stuartnelson3

using rbx -S gem install [gem-name] has been working for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment