我正在从事的Rails项目在其Gemfile中包含了gem 'therubyracer‘。当我执行bundle install时,我得到以下错误:
...
Using launchy 2.4.2
Using less 2.4.0
Using less-rails 2.4.2
Bundler::GemspecError: Could not read gem at /Users/Swanros/.rvm/gems/ruby-2.0.0-p353@c-bullz/cache/libv8-3.16.14.3-x86_64-darwin-12.gem. It may be corrupted.
An error occurred while installing libv8 (3.16.14.3), and Bundler cannot continue.
Make sure that `gem install libv8 -v '3.16.14.3'` succeeds before bundling.当我执行gem install libv8 -v '3.16.14.3时,它成功了,并且我无法完成我的项目捆绑。
我已经卸载了libv8,重新安装了它,以及therubyracer,但我仍然不能让它工作。
有什么想法吗?
发布于 2014-02-21 00:50:01
这解决了我的问题:
rm -rf /Users/Swanros/.rvm/gems/ruby-2.0.0-p353@c-bullz/cache/
:D
发布于 2014-04-05 11:31:11
当我从OSX Mountain Lion升级到OSX Mavericks时,也遇到了同样的问题。
从ruby-1.8.7-p354升级到ruby-1.8.7-375为我做到了这一点。
假设您使用rbenv:
rbenv install 1.8.7-p375
rbenv rehash
rbenv global 1.8.7-p375
bundle installhttps://stackoverflow.com/questions/21913715
复制相似问题