嗨,我在安装捆绑包时遇到了这个错误...
Installing therubyracer (0.10.1) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/home/rajendran/.rvm/rubies/ruby-1.9.3-p374/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=/home/rajendran/.rvm/rubies/ruby-1.9.3-p374/bin/ruby
extconf.rb:15:in `<main>': undefined method `include_path' for Libv8:Module (NoMethodError)
Gem files will remain installed in /home/rajendran/.rvm/gems/ruby-1.9.3-p374/gems/therubyracer-0.10.1 for inspection.
Results logged to /home/rajendran/.rvm/gems/ruby-1.9.3-p374/gems/therubyracer-0.10.1/ext/v8/gem_make.out
An error occurred while installing therubyracer (0.10.1), and Bundler cannot continue.
Make sure that `gem install therubyracer -v '0.10.1'` succeeds before bundling.
我该如何解决这个问题呢?
注: OS - Ubuntu 12.10
发布于 2013-02-15 19:23:06
您可以像下面这样尝试:
$ gem uninstall libv8
$ gem install therubyracer
当我收到错误时,它会让我的工作变得正常。
P.S
你需要提到你的操作系统
发布于 2013-04-22 15:51:08
类似于@Sri,但有一点不同,所以粘贴它不要忘记它: os - xubuntu 12.10
发布于 2013-08-15 16:58:16
sudo apt-get install g++完成了这项工作...
希望它能帮助到一些人
https://stackoverflow.com/questions/14893272
复制相似问题