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
How to Export a Rails Model to JSON Schema
How to Trigger Mouse Event in Capybara Test
How to Completely Remove Webpack and All Its Dependencies from Rails App
How to Have One Resource in Routes for Namespace and Root Path Altogether - Rails 4
Using Authlogic_API for Rails Rest API Access
Trying to Get Svn2Git Working on Windows
Retrieve All Posts Where the Given User Has Commented, Ruby on Rails
Rails - Link_To Helper with Data-* Attribute
How to Build Task 'Gems:Install'
Factory_Girl + Rspec Doesn't Seem to Roll Back Changes After Each Example
How to Download a File Over Http Using Ruby
Ruby Rake Load Tasks from a Gem
Package Configuration for Libffi Is Not Found in MACos While Installing Travis-Cli
Gem Install Dm-Postgres-Adapter Build Error
Date Range Facets with Sunspot in Ruby on Rails
Setting the Environment in Gemfile for Bundling Install/Update Based on a Customize File
Ruby, How to Add a Param to an Url That You Don't Know If It Has Any Other Param Already