【问题标题】:libv8 fails on installation using jruby使用 jruby 安装 libv8 失败
【发布时间】:2015-01-03 07:24:47
【问题描述】:

我正在尝试捆绑安装示例 rails 4 应用程序,但遇到了以下问题。使用 jruby 1.7.18 安装 libv8 失败。

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

    /home/kingslee/.rvm/rubies/jruby-1.7.18/bin/jruby extconf.rb 
/home/kingslee/.rvm/rubies/jruby-1.7.18/lib/ruby/shared/mkmf.rb:14: Use RbConfig instead of obsolete and deprecated Config.
mkmf.rb can't find header files for ruby at /home/kingslee/.rvm/rubies/jruby-1.7.18/lib/native/include/ruby/ruby.h


Gem files will remain installed in /home/kingslee/.rvm/gems/jruby-1.7.18@app/gems/libv8-3.16.14.7 for inspection.
Results logged to /home/kingslee/.rvm/gems/jruby-1.7.18@app/gems/libv8-3.16.14.7/ext/libv8/gem_make.out
An error occurred while installing libv8 (3.16.14.7), and Bundler cannot
continue.
Make sure that `gem install libv8 -v '3.16.14.7'` succeeds before bundling.

【问题讨论】:

    标签: jruby libv8


    【解决方案1】:

    我猜 ruby​​rhino 应该可以解决问题 - https://github.com/cowboyd/libv8/issues/131

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-05-16
      • 1970-01-01
      • 2011-12-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-04-09
      • 2019-03-14
      相关资源
      最近更新 更多