2014-09-06 111 views
3

沒問題。我第一次嘗試bootstarp,並將寶石「therubyracer」和「less-rails」與「twitter-bootstrap-rails」一起添加到我的gem文件中。即使安裝成功後仍然會出現libv8錯誤

後捆綁安裝

我得到以下錯誤。

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問題建議,我試圖

創業板安裝libv8 -v '3.11.8.17' - --with系統-V8

它也成功,但捆綁安裝錯誤沒有區別。

+0

'gem list | grep libv' – Nimir 2014-09-06 08:02:50

回答

0

嘗試以下步驟:

  1. 刪除當前libv8版本

    寶石卸載libv8

  2. 重新安裝libv8

    創業板安裝libv8

  3. 查詢新版本號

    寶石列表| grep的libv

  4. 更新Gemfile從上述(3)

    寶石 'libv8' 獲得的的libv8安裝版本, '3.11.8.3' #for例如

  5. 嘗試重新捆紮

    捆綁安裝

+0

對不起!太急於坐在解決方案。我卸載了導軌並重新安裝了它,並且工作正常。我認爲路徑捆綁軟件正在使用什麼有問題。不管怎麼說,還是要謝謝你! – sonalkr132 2014-09-06 08:22:37

相關問題