rails 3.1.0 server bombs - no javascript runtime. Ideas?

23 views
Skip to first unread message

brian piercy

unread,
Sep 5, 2011, 4:12:50 PM9/5/11
to rubyonra...@googlegroups.com
Downloaded & installed RoR 3.1.0. On Windows, no problems.

On Ubuntu, "rails server" bombs out with a missing Javascript runtime. I installed the execjs gem to remedy the problem - no luck.

Ideas?


Martin Wawrusch

unread,
Sep 6, 2011, 1:05:12 AM9/6/11
to rubyonra...@googlegroups.com
execjs is just an intermediary between a javascript runtime and ruby. In general adding therubyracer gem should help you, or installing node.js directly.



--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/HESkWlWRSnoJ.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


Dave Geller

unread,
Sep 6, 2011, 1:27:47 AM9/6/11
to rubyonra...@googlegroups.com
gem 'therubyracer'

Onur Özgür ÖZKAN

unread,
Sep 6, 2011, 3:56:03 AM9/6/11
to Ruby on Rails: Talk
Hi Brian,

You must install a server site js compiler like node.js or an other
solution is adding ‘therubyracer’, ‘>= 0.8.2′ at gemfile

#Install node.js
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs

# Or add therubyracer
gem 'therubyracer', '>= 0.8.2'

More info http://www.onurozgurozkan.com/rails-3-1-and-execjsruntimeunavailable-error/

Best Regards.

brian piercy

unread,
Sep 6, 2011, 10:30:13 AM9/6/11
to Ruby on Rails: Talk
Dave,
gem 'therubyracer' did the trick. Many thanks to you and everybody
else on the thread.
/Brian


On Sep 6, 1:27 am, Dave Geller <arp...@gmail.com> wrote:
> gem 'therubyracer'
Reply all
Reply to author
Forward
0 new messages