gpt4 book ai didi

ruby-on-rails - Mac上的libv8(3.11.8.17)软件包安装错误

转载 作者:行者123 更新时间:2023-12-03 13:20:07 25 4
gpt4 key购买 nike

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

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时,它说
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开发人员,所以任何想法都很感激。

最佳答案

我通过使用以下命令解决了此问题:
gem install libv8 -v 3.11.8.17 -- --with-system-v8
它与Mavericks上的RVM一起使用。

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

关于ruby-on-rails - Mac上的libv8(3.11.8.17)软件包安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18645859/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com