首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装libv8 (3.16.14.7)时出错,捆绑程序无法继续

安装libv8 (3.16.14.7)时出错,捆绑程序无法继续
EN

Stack Overflow用户
提问于 2015-01-10 18:17:14
回答 5查看 11.9K关注 0票数 25

我在这里得到一个循环错误:

代码语言:javascript
复制
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给了我:

代码语言:javascript
复制
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.
EN

回答 5

Stack Overflow用户

发布于 2020-06-17 00:17:03

对于MacOS Catalina和Big Sur:

代码语言:javascript
复制
brew install v8@3.15
bundle config build.libv8 --with-system-v8
bundle config build.therubyracer --with-v8-dir=$(brew --prefix v8@3.15)
bundle

(根据需要更新版本号)

票数 42
EN

Stack Overflow用户

发布于 2019-03-27 18:49:30

面对同样的问题,安装gem的系统偏好设置对我来说是有效的。

代码语言:javascript
复制
gem install libv8 -v '3.16.14.7' -- --with-system-v8
票数 23
EN

Stack Overflow用户

发布于 2016-08-18 02:30:55

通常,解决此问题的方法是将libv8更新到最新版本:

bundle update libv8

票数 13
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27875073

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档