pallav@pallav-System-Product-Name:~/Workspace/blog$ rails server
/home/pallav/.rvm/gems/ruby-2.0.0-p353/gems/execjs-2.0.2/lib/execjs/runtimes.rb:51:in `autodetect\': Co
You need a Javascript runtime. Execjs is in fact a wrapper around various runtimes you could use. You still need to install one of them. Several systems already bring a usable one (MacOS and Windows). On others, you need to install one.
In the error description, it pointed you towards https://github.com/sstephenson/execjs#readme which describes several of the supported runtimes (Hint: Always read error messages!). In your Gemfile
, you'll notice that there is the therubyracer
gem referenced (but commented out). It is one of the supported runtimes.
Thus, you could just uncomment this gem, run bundle install
and be set.
You need a Javascript runtime installed, like Node.js for example:
$ sudo apt-get install nodejs