Pregunta

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
¿Fue útil?

Solución

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

Otros consejos

I ran the following command to fix that problem:

bundle update && bundle install

cheers

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top