Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


error on installing gem, rubinius 2.0.0rc1 #2009

stuartnelson3 opened this Issue · 4 comments

3 participants

stuart nelson Gibheer Brian Shirai
stuart nelson

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.


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

Brian Shirai

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.

Brian Shirai

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

stuart nelson

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
Something went wrong with that request. Please try again.