如何修复小牛的Gemfile的libv8错误? [英] How to fix libv8 error from Gemfile on Mavericks?

查看:164
本文介绍了如何修复小牛的Gemfile的libv8错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行 bundle install 我得到

 发生错误同时安装libv8(3.11.8.17),并且Bundler无法继续。 
确保`gem install libv8 -v'3.11.8.17'`捆绑成功。

Libv8依赖于 lunchy 和<$

我已经锁定在我的 Gemfile.lock 中, libv8 gem on 3.11.8.17



但是我发现我可以将它降级到 3.3 .10.4



捆绑安装/更新:libv8(therubyracer)安装失败(使用本机扩展)



如何做那么我还发现了 3.11.8.17 gem,但不知道如何在我的系统上实现它。
https://github.com/cowboyd/libv8/issues/ 107#issuecomment-26146673

解决方案

您可以在小牛身上安装该版本:

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

我可以证实这适用于rbenv和ruby 1.9.3p448



在这里看到类似的线程在OS X 10.9+上安装libv8 gem


When I run bundle install I get

An error occurred while installing libv8 (3.11.8.17), and Bundler cannot continue.
Make sure that `gem install libv8 -v '3.11.8.17'` succeeds before bundling.

Libv8 is dependency for lunchy and therubyracer gems.

I have locked in my Gemfile.lock libv8 gem on 3.11.8.17

But I found that I can downgrade it to 3.3.10.4

bundle install / update: libv8 (therubyracer) installation fails (with native extensions)

How to do that?

I also found working 3.11.8.17 gem but don't know how to implement it on my system. https://github.com/cowboyd/libv8/issues/107#issuecomment-26146673

解决方案

You can actually install that version on Mavericks:

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

I can confirm this works with rbenv and ruby 1.9.3p448

See a similar thread here Installing libv8 gem on OS X 10.9+

这篇关于如何修复小牛的Gemfile的libv8错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆