0

I've set up Rubinius on my mac to give it a shot and see how it behaves with Puma, but I'm having some trouble with installing gems, more specifically the Bundler gem. I keep getting this error:

ERROR:  Error installing bundler: invalid gem: package is corrupt, exception while verifying: invalid byte sequence in US-ASCII (ArgumentError) in /Users/rolandjitsu/.gem/rbx/2.1.0/cache/bundler-1.5.3.gem

Does anyone know what is happening? Because I tried finding the reason why it behaves this way, but I could not figure it out why.

EDIT: If I remove the cache folder and try a gem install bundler I get the following:

Fetching: bundler-1.5.3.gem (100%)
ERROR:  Error installing bundler: invalid gem: package is corrupt, exception while verifying: invalid byte sequence in US-ASCII (ArgumentError) in /Users/rolandjitsu/.gem/rbx/2.1.0/cache/bundler-1.5.3.gem
Roland
  • 9,321
  • 17
  • 79
  • 135

2 Answers2

1

Problem is because Ruby's cache directory gets out of sync with the actual gem repository.

Remove cache folder. You can visit this following stack answer here @ An error occurred while installing libv8 (3.11.8.13), and Bundler cannot continue

Community
  • 1
  • 1
Alok Anand
  • 3,346
  • 1
  • 20
  • 17
  • I have tried that previously, but now it `Fetching: bundler-1.5.3.gem (100%)` and then I get the error. – Roland Feb 25 '14 at 07:55
0

I ran the following command to fix that problem:

bundle update && bundle install

cheers