我在这里得到一个循环错误:
Bundler::GemspecError: Could not read gem at /path/to/website/vendor/cache/ruby/2.1.0/cache/libv8-3.16.14.7-x86_64-darwin-14.gem. It may be corrupted.
An error occurred while installing libv8 (3.16.14.7), and Bundler cannot continue.
Make sure that `gem install libv8 -v '3.16.14.7'` succeeds before bundling.
$ gem install libv8 -v '3.16.14.7'
Successfully installed libv8-3.16.14.7-x86_64-darwin-14
/Users/snowcrash/.rvm/gems/ruby-2.1.5/gems/rdoc-4.0.1/lib/rdoc/markdown.rb:15931: warning: encountered \r in middle of line, treated as a mere space
Parsing documentation for libv8-3.16.14.7-x86_64-darwin-14
Done installing documentation for libv8 after 0 seconds
1 gem installed
$ bundle install --path vendor/cache
... many lines here ...
Using koala (1.10.1)
Bundler::GemspecError: Could not read gem at /path/to/website/vendor/cache/ruby/2.1.0/cache/libv8-3.16.14.7-x86_64-darwin-14.gem. It may be corrupted.
An error occurred while installing libv8 (3.16.14.7), and Bundler cannot continue.
Make sure that `gem install libv8 -v '3.16.14.7'` succeeds before bundling.
有什么建议吗?
====更新
我尝试使用rm -rf ~/.rvm/gems/ruby-2.1.5/cache/
删除所有缓存数据,现在bundle install --path vendor/cache
显示:
Bundler::GemspecError: Could not read gem at /path/to/website/vendor/cache/ruby/2.1.0/cache/libv8-3.16.14.7-x86_64-darwin-14.gem. It may be corrupted.
An error occurred while installing libv8 (3.16.14.7), and Bundler cannot continue.
Make sure that `gem install libv8 -v '3.16.14.7'` succeeds before bundling.
5条答案
按热度按时间w8ntj3qf1#
对于MacOS Catalina 、大苏尔和 Monterey :
(根据需要更新版本号)
nnvyjq4y2#
面对同样的问题,安装gem与系统首选项为我工作
lyfkaqu13#
通常,解决此问题的方法是将libv8更新到最新版本:
bundle update libv8
wpcxdonn4#
运行以下bundle config命令,然后再次运行bundle
5sxhfpxr5#
运行以下命令,然后再次运行软件包安装。