3

好的。我第一次尝试 bootstarp,并在我的 gemfile 中添加了 gem “therubyracer”和“less-rails”以及“twitter-bootstrap-rails”。后

捆绑安装

我收到以下错误。

Bundler::GemspecError: Could not read gem at /home/addie/.rvm/gems/ruby-2.1.1/cache/libv8-3.16.14.3-x86_64-linux.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.

正如它所说,我试过:

宝石安装 libv8 -v '3.16.14.3'

它确实成功了。

Building native extensions.  This could take a while...
Successfully installed libv8-3.16.14.3
Parsing documentation for libv8-3.16.14.3
Done installing documentation for libv8 after 0 seconds
1 gem installed

但是当我再次尝试捆绑安装时,我得到与以前相同的错误:

Bundler::GemspecError: Could not read gem at /home/addie/.rvm/gems/ruby-2.1.1/cache/libv8-3.16.14.3-x86_64-linux.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.

它太烦人了!有人可以帮帮我吗?

编辑:

正如大多数 libv8 问题的解决方案所暗示的那样,我尝试过

gem install libv8 -v '3.11.8.17' -- --with-system-v8

它也成功了,但捆绑安装错误没有任何区别。

4

1 回答 1

0

尝试以下步骤:

  1. 删除当前libv8版本

    宝石卸载 libv8

  2. 重新安装libv8

    宝石安装 libv8

  3. 检查新版本号

    宝石清单 | grep libv

  4. 更新到从上面(3)Gemfile中获得的安装版本libv8

    gem 'libv8', '3.11.8.3' #例如

  5. 再次尝试捆绑

    捆绑安装

于 2014-09-06T08:14:26.400 回答