2013-02-19 41 views
1
Installing therubyracer (0.11.0) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. 

     /Users/jamesharrington/.rvm/rubies/ruby-1.9.3-p327/bin/ruby extconf.rb 
checking for main() in -lpthread... yes 
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/jamesharrington/.rvm/rubies/ruby-1.9.3-p327/bin/ruby 
    --with-pthreadlib 
    --without-pthreadlib 
    --with-objclib 
    --without-objclib 
    --enable-debug 
    --disable-debug 
/Users/jamesharrington/.rvm/gems/ruby-1.9.3-p327/gems/therubyracer-0.11.0/ext/v8/build.rb:50:in `build_with_rubygem_libv8': undefined local variable or method `libv8_include_flags' for main:Object (NameError) 
    from extconf.rb:20:in `<main>' 


Gem files will remain installed in /Users/jamesharrington/.rvm/gems/ruby-1.9.3-p327/gems/therubyracer-0.11.0 for inspection. 
Results logged to /Users/jamesharrington/.rvm/gems/ruby-1.9.3-p327/gems/therubyracer-0.11.0/ext/v8/gem_make.out 
An error occurred while installing therubyracer (0.11.0), and Bundler cannot continue. 
Make sure that `gem install therubyracer -v '0.11.0'` succeeds before bundling. 



OSX 10.7.5
轨3.2.3
红宝石1.9.3p327(2012年11月10日修订37606)[x86_64-darwin11.4.2]


如果有人能帮我弄清楚为什么我不能安装therubyracer,我将不胜感激。我无法安装rubyracer - 我无法创建Makefile文件由于某些原因



这是/Users/jamesharrington/.rvm/gems/ruby-1.9.3-p327/gems/therubyracer-0.11.0/ext/v8/gem_make.out

/Users/jamesharrington/.rvm/rubies/ruby-1.9.3-p327/bin/ruby extconf.rb 
checking for main() in -lpthread... yes 
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/jamesharrington/.rvm/rubies/ruby-1.9.3-p327/bin/ruby 
    --with-pthreadlib 
    --without-pthreadlib 
    --with-objclib 
    --without-objclib 
    --enable-debug 
    --disable-debug 
/Users/jamesharrington/.rvm/gems/ruby-1.9.3-p327/gems/therubyracer-0.11.0/ext/v8/build.rb:50:in `build_with_rubygem_libv8': undefined local variable or method `libv8_include_flags' for main:Object (NameError) 
    from extconf.rb:20:in `<main>' 
+0

怎么样倾销/Users/jamesharrington/.rvm/gems/ruby-1.9.3-p327 /gems/therubyracer-0.11.0/ext/v8/gem_make.out让我们看看 – 2013-02-19 19:58:50

+0

它说的是同样的东西,生病告诉你 – 2013-02-19 20:34:40

回答

2

这帮助我在同一个错误:

bundle update therubyracer libv8 
相关问题