I\'m having trouble setting up ruby on rails on my machine. I\'ve been following the book \"Agile Web Development with Rails\" and up until now everything has been going fine.<
I think you need a runtime like rubyracer. Try
sudo gem install therubyracer
If you will add therubyracer gem , may be your problem woould be solved
Code
gem 'therubyracer'
gem 'execjs'
then just do a bundle install
Your Gemfile should contain BOTH of the following lines:
gem 'execjs'
gem 'therubyracer'
Then run bundle install
and try again.
Try this:
$ sudo apt-get install nodejs
I'd installed Node.js before Rails. Now its using Node.js as the javascript runtime by itself.
JavaScript Runtime Node.js (V8)
If you're using Pacman packet manager you should use:
# pacman -S nodejs
or
$ sudo pacman -S nodejs