首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >在Mac OS X Lion上` `gem install theubyracer`失败

在Mac OS X Lion上` `gem install theubyracer`失败
EN

Stack Overflow用户
提问于 2012-06-06 06:21:51
回答 11查看 41.7K关注 0票数 70

如果能帮助我让gem install therubyracer正常工作,我将不胜感激。下面是错误:

代码语言:javascript
复制
$ gem install therubyracer
Building native extensions.  This could take a while...
ERROR:  Error installing therubyracer:
    ERROR: Failed to build gem native extension.

        /Users/david/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for main() in -lobjc... yes
*** 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=/Users/david/.rvm/rubies/ruby-1.9.3-p194/bin/ruby
    --with-objclib
    --without-objclib
extconf.rb:15:in `<main>': undefined method `include_path' for Libv8:Module (NoMethodError)

以下是我在出现错误之前运行的一些值得注意的步骤。它们工作得很好:

代码语言:javascript
复制
$ gem install libv8
$ brew install v8

我的环境是:

  • Mac OS X Lion 10.7.4
  • ruby 1.9.3p194 (35410-04-20修订版) x86_64-darwin11.4.0
  • V8版本3.9.24 (通过自制软件)
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/10905820

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档