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
4

2 回答 2

1

问题是因为 Ruby 的缓存目录与实际的 gem 存储库不同步。

删除缓存文件夹。您可以在此处访问以下堆栈答案@安装 libv8 (3.11.8.13) 时发生错误,并且 Bundler 无法继续

于 2014-02-25T07:46:44.873 回答
0

我运行以下命令来解决该问题:

bundle update && bundle install

干杯

于 2014-08-26T14:49:32.550 回答