Mac上的libv8(3.11.8.17)软件包安装错误 [英] libv8 (3.11.8.17) bundle install error on Mac

查看:74
本文介绍了Mac上的libv8(3.11.8.17)软件包安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将ruby升级到1.9.3,现在无法启动服务器。当我运行bundle install时,它说

I upgraded ruby to 1.9.3, and now I can't get my server to start. When I run bundle install, it says

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.

当我尝试安装该gem时,它会显示

When I try to install that gem, it says

ERROR:  Error installing libv8:
        ERROR: Failed to build gem native extension.

        /Users/Erica/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
creating Makefile
Compiling v8 for x64
Using python 2.7.1
Unable to find a compiler officially supported by v8.
It is recommended to use GCC v4.4 or higher
Using compiler: g++
Unable to find a compiler officially supported by v8.
It is recommended to use GCC v4.4 or higher

我是HTML / CSS编码器,不是真正的Ruby开发人员,因此非常感谢任何想法。

I'm an HTML/CSS coder, not really a Ruby developer, so any thoughts are really appreciated.

推荐答案

我使用以下命令解决了此问题:

I resolved this issue by using the following command:

gem安装libv8 -v 3.11.8.17---with-system-v8

它与Mavericks上的RVM配合使用。

It works with RVM on Mavericks.

https://stackoverflow.com/a/19667419/763744

这篇关于Mac上的libv8(3.11.8.17)软件包安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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