My schedule right now is not very tight and I have a couple of hours free almost everyday. So instead of playing Skyrim, I am learning Ruby on Rails.
I am using RVM (http://beginrescueend.com/) on Ubuntu Ubuntu 10.04 LTS (Lucid Lynx).
Here is the error I get when I try to run “rails server”:
A lot of people have already experienced this error. There is a popular thread for this in Stackoverflow – here. The Original Poster of the thread selected the this answer:
I’m on Ubuntu 11.04. Had similar issues. Installing node.js fixed this for me
But I think the more appropriate answer is the one by vincent jacquel in this thread.
- Open the
- Add these lines:
gem 'execjs' gem 'therubyracer'
- Then run this command:
$> bundle after
I also encountered that. so yeah, that is a very common issue. RoR integrated coffeescript in 3.1
tar xfv node-v0.1.31.tar.gz
Thanks for the fix. Ruby on Rails is awesome but has a couple tricks you need to know.
@jagat, that would also solve the problem but IMHO it is not the best way…