无法在JRuby中安装therubyracer [英] Can't install therubyracer in JRuby

查看:73
本文介绍了无法在JRuby中安装therubyracer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我先安装了RVM,然后安装了Jruby,这是我键入时得到的版本:jruby -v:

I've installed RVM and then Jruby, this the version that i get when i type: jruby -v:

jruby 1.6.5.1(ruby-1.8.7-p330)(2011-12-27 1bf37c2)(Java HotSpot(TM)客户端VM 1.7.0_02)[linux-i386-java]

jruby 1.6.5.1 (ruby-1.8.7-p330) (2011-12-27 1bf37c2) (Java HotSpot(TM) Client VM 1.7.0_02) [linux-i386-java]

问题是我无法安装therubyracer gem,当我尝试通过jruby -S gem安装therubyracer时,我得到了这个提示:

The problem is that I can't install therubyracer gem, i get this when i try to install by jruby -S gem install therubyracer:

/usr/local/rvm/rubies/jruby-1.6.5.1/bin/jruby extconf.rb
WARNING: JRuby does not support native extensions or the `mkmf' library very we$
Check http://kenai.com/projects/jruby/pages/Home for alternatives.
Checking for Python...Unable to build libv8: Python not found!
*** 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=/usr/local/rvm/rubies/jruby-1.6.5.1/bin/jruby

我也尝试使用--1.9参数来强制使用另一个ruby版本,但是无论如何它还是失败了.甚至我尝试安装libv8,但上面也遇到相同的错误.

I also tried with --1.9 parameter, to force to use another ruby version, but it fails anyway. Even I tried to install libv8, but i get the same error above.

有什么想法吗? 我有CentOS 5.7

Any ideas? I have CentOS 5.7

推荐答案

您需要 Ruby Rhino .

这篇关于无法在JRuby中安装therubyracer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆