Can not fix the 'can not find javascript runtime' issue

13 views
Skip to first unread message

Ekin Han

unread,
Jul 19, 2012, 10:18:21 PM7/19/12
to rubyonra...@googlegroups.com
Hi all,

I am using unbuntu 11.10 with ruby 1.9.3.

I installed ruby 1.9.3 via source code and installed rails 3.2x with the gem command 'sudo gem install rails'

After new a project and run 'rails server', an error occured, it was 'Can not find javascript runtime'.

Then I searched google and try to fix this problem by installing 'therubyracer' gem.

But when I type 'rails server' the problem still orrcued. 

Would you kindly tell me how can I fix this issue?

Thank you. 

Eason

rajesh reddy

unread,
Jul 20, 2012, 1:00:01 AM7/20/12
to rubyonra...@googlegroups.com
Hi,

  include these two gems

  gem 'execjs'
  gem 'therubyracer'

Regards,
Rajesh.

Mrrobinhood5

unread,
Jul 20, 2012, 1:03:44 AM7/20/12
to rubyonra...@googlegroups.com
Try installing nodejs :)

If on ubuntu type :
sudo apt-get install nodejs

Hope this helps

Ekin Han

unread,
Jul 20, 2012, 6:36:26 AM7/20/12
to rubyonra...@googlegroups.com
Thank you very much, I think i should install nodejs to fix this issue

2012/7/20 Mrrobinhood5 <mrrobi...@gmail.com>

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

Norbert Melzer

unread,
Jul 20, 2012, 1:18:00 PM7/20/12
to rubyonra...@googlegroups.com

I would prefer ruby racer gem over nodes! Nodejs is a dependency that you eventually can't satisfy on your production environment, and or others can't if this is a project meant to be released open source or even selling.

Reply all
Reply to author
Forward
0 new messages