安装成功后即使是恼人的libv8错误

时间:2014-09-06 05:13:46

标签: ruby-on-rails ruby twitter-bootstrap bundler libv8

好。我是第一次尝试bootstarp而且我添加了宝石" therubyracer"和#34; less-rails"我的gemfile以及' 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.
正如它所说,我试过了:

  

gem install 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

它也成功但对捆绑安装错误没有任何影响。

1 个答案:

答案 0 :(得分:0)

请尝试以下步骤:

  1. 删除当前的libv8版本

    gem uninstall libv8

  2. 重新安装libv8

    gem install libv8

  3. 检查新版本号

    宝石清单| grep libv

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

    gem' libv8',' 3.11.8.3' #for example

  5. 再次尝试捆绑

    捆绑安装