Eri*_*ica 18 ruby-on-rails bundler
我将ruby升级到1.9.3,现在我无法启动服务器.当我运行bundle install时,它说
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.
Run Code Online (Sandbox Code Playgroud)
当我试图安装那个宝石时,它说
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
Run Code Online (Sandbox Code Playgroud)
我是一个HTML/CSS编码器,不是真正的Ruby开发人员,所以任何想法都非常感激.
尝试在自制程序中重新安装v8:
gem uninstall libv8
brew install v8
gem install libv8
Run Code Online (Sandbox Code Playgroud)
我已经遇到过这个问题几次了,我首先尝试的是(重新)安装command line tools。正常情况下应该可以工作。
另一种成功的尝试是卸载libv8,然后再次安装。这需要很长时间...
| 归档时间: |
|
| 查看次数: |
7325 次 |
| 最近记录: |