Can't Install Therubyracer in Jruby

Can't install therubyracer in JRuby

You want the Ruby Rhino.

bundle install / update: libv8 (therubyracer) installation fails (with native extensions)

Try that one for a little while:

gem 'therubyracer'
gem 'libv8', '3.16.14.3'

Should help.

Also it's better with a new bundler: gem install bundler --pre

Error installing libv8: ERROR: Failed to build gem native extension

try this one:

gem install libv8 -v '3.16.14.3' -- --with-system-v8

Note : Because libv8 is the interface for the V8 engine used by therubyracer,
you may need to use libv8, even if you have V8 installed already. If
you wish to use your own V8 installation, rather than have it built
for you, use the --with-system-v8 option.

For more you can go through the documentation of libv8 on github

Jruby installation for ROR

You can't use 'therubyracer' and 'libv8' gems with JRuby.

Short answer:

Use 'therubyrhino' gem instead (https://github.com/cowboyd/therubyrhino)

Explanation:

There are some gems that can't be used under JRuby, because they are using native (C) extensions - here is a list: https://github.com/jruby/jruby/wiki/C-Extension-Alternatives

Can't bundle install jruby with curb

According to
install curb gem on Ruby
you might be getting hit with 32 bit/64 bit compatibility problems.
Maybe you need 64 bit openssl? will probably need zlib too. Try reinstalling:

  • $ brew uninstall openssl
  • $ brew install --64-bit openssl

   and i'm guessing here, but maybe

  • $ gem install curb -- --with-ldflags='-L/usr/local/Cellar/openssl/0.9.8s'
    (or whatever your corresponding version is)

RVM won't install JRuby, gets exception

I would try installing the Sun JRE/JDK.

Or perhaps you could reinstall OpenJDK(probably the easiest way to reset it to being the default on your system).

Update:

To change the default java do this. First check which Javas are available:

update-alternatives --list java

To actually change which one you are using do this:

update-alternatives --config java

jruby-head Python...ArgumentError: Malformed version number string 2.7.2+

therubyracer is not compatible with jruby.

See this answer for an alternative:

https://stackoverflow.com/a/8994291/498594



Related Topics



Leave a reply



Submit