Rails, rake does not work Rails, rake does not work unix unix

Rails, rake does not work


Add this to your Gemfile

gem 'therubyracer', require: "v8"

and run

bundle install


I have installed the gem therubyracer, execjs, mustang but nothing worked.

On my linux (ubuntu) the command

sudo apt-get install nodejs

did the job finally for me.

May be this post could also be helpful: https://github.com/intridea/rails_wizard/issues/31


You need to install runtime for these.. some of the good options are

therubyracer - Google V8 embedded within Ruby

therubyrhino - Mozilla Rhino embedded within JRuby

Johnson - Mozilla SpiderMonkey embedded within Ruby

Mustang - Mustang V8 embedded within Ruby

Node.js

Apple JavaScriptCore - Included with Mac OS X

Mozilla SpiderMonkey

Microsoft Windows Script Host (JScript)

you can find more details at https://github.com/sstephenson/execjs