小编use*_*832的帖子

捆绑安装/在rails上安装libv8(3.3.10.4)时出错(在Lion上运行)

我在我的gem文件中添加了gem'sunkpot_rails'并运行了bundle install.我在安装libv8时遇到错误,错误信息如下:

Installing libv8 (3.3.10.4) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /opt/local/bin/ruby extconf.rb 
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
    --with-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/opt/local/bin/ruby
extconf.rb:13: uninitialized constant Gem (NameError)
Checking for Python...

Gem files will remain installed in /Users/sonyakim/.rvm/gems/ruby-1.9.2-p290/gems/libv8-3.3.10.4 for inspection.
Results …
Run Code Online (Sandbox Code Playgroud)

ruby ruby-on-rails

12
推荐指数
1
解决办法
2万
查看次数

标签 统计

ruby ×1

ruby-on-rails ×1