Rubyracer Gem on Mavericks with Ruby 1.8.7

时间:2014-06-17 10:41:24

标签: ruby-on-rails ruby ruby-on-rails-3 gem osx-mavericks

我已经在这个安装问题上做了一些广泛的谷歌搜索,并尝试了几乎所有看起来像一个没有喜悦的解决方案。对于那些经历过相同问题的人,任何人都可以给我任何关于下一步的安装错误的指示,我会得到它。

我的软件包将在没有RubyRacer的情况下安装,但由于这个应用程序很旧并且在Heroku的Bamboo堆栈上运行,我需要它。

gemfile有gem 'therubyracer', '0.10.2'

捆绑安装错误是:

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /Users/ryanberry/.rvm/rubies/ruby-1.8.7-head/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
    --without-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/ryanberry/.rvm/rubies/ruby-1.8.7-head/bin/ruby
extconf.rb:13: uninitialized constant Gem (NameError)
Checking for Python...

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

提前致谢,用这个撕掉我的头发,让等待新开发工作的同事们感到悲伤。

0 个答案:

没有答案