rails/rails — Issue #4020: Problem with Execjs and its JS runtime environment
Author: jfeaver
Created: 2011-12-18 17:28:49+00:00
State: open

I'm using Ubuntu 11.10 and package managers in the terminal to install and run Rails. Here is the process I've taken so far to setup Rails:

+ download and install Ruby 1.9.2 and Rails 3.1.0
-- I did this using sudo apt-get ruby1.9.1 and sudo gem install rails
+ I made a new rails app using rails new path/to/app
+ I went to the new app directory and tried running rails server and got an error about not having a JS ruby environment
+ I had to get a JS runtime environment for execjs so I downloaded 'therubyracer' as well as 'therubyrhino' and added them to my gem file, one at a time like this: gem 'therubyracer' then ran bundle install
+ After everything was successful with the install, I ran rails server again
-- with both runtime environments I have had similar errors:

Could not find libv8-3.3.10.4 in any of the sources
Run bundle install to install missing gems.

Could not find therubyrhino-1.73.0 in any of the sources
Run bundle install to install missing gems.

Bundle knows where these programs live, giving correct pathnames when I enter bundle show libv8 or bundle show therubyrhino. They are both in /usr/lib/ruby/gems/1.9.1/gems/_ where all the other gems are located for the bundle install.

Is this an issue with my machine or is there some step that I've forgotten?

Thanks so much,
Feav