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

**URL:** <https://discuss.rubyonrails.org/t/can-not-fix-the-can-not-find-javascript-runtime-issue/64542>\
**Category:** rubyonrails-talk\
**Created:** [July 20, 2012, 2:18am UTC](https://discuss.rubyonrails.org/t/can-not-fix-the-can-not-find-javascript-runtime-issue/64542 "2012-07-20T02:18:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ekin\_Han](https://avatars.discourse-cdn.com/v4/letter/e/6a8cbe/32.png) [@Ekin\_Han](https://discuss.rubyonrails.org/u/Ekin_Han)\
**Post date:** [July 20, 2012, 2:18am UTC](https://discuss.rubyonrails.org/t/can-not-fix-the-can-not-find-javascript-runtime-issue/64542/1 "2012-07-20T02:18:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Rajesh\_Reddy](https://avatars.discourse-cdn.com/v4/letter/r/977dab/32.png) [@Rajesh\_Reddy](https://discuss.rubyonrails.org/u/Rajesh_Reddy)\
**Post date:** [July 20, 2012, 5:00am UTC](https://discuss.rubyonrails.org/t/can-not-fix-the-can-not-find-javascript-runtime-issue/64542/2 "2012-07-20T05:00:01Z")

</div>

Hi,

include these two gems

gem ‘execjs’

gem ‘therubyracer’

Regards,

Rajesh.

---

<div class="post-metadata">

**Author:** ![Mrrobinhood5](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@Mrrobinhood5](https://discuss.rubyonrails.org/u/Mrrobinhood5)\
**Post date:** [July 20, 2012, 5:03am UTC](https://discuss.rubyonrails.org/t/can-not-fix-the-can-not-find-javascript-runtime-issue/64542/3 "2012-07-20T05:03:44Z")

</div>

Try installing nodejs 🙂

If on ubuntu type : sudo apt-get install nodejs

Hope this helps

---

<div class="post-metadata">

**Author:** ![Ekin\_Han](https://avatars.discourse-cdn.com/v4/letter/e/6a8cbe/32.png) [@Ekin\_Han](https://discuss.rubyonrails.org/u/Ekin_Han)\
**Post date:** [July 20, 2012, 10:36am UTC](https://discuss.rubyonrails.org/t/can-not-fix-the-can-not-find-javascript-runtime-issue/64542/4 "2012-07-20T10:36:26Z")

</div>

Thank you very much, I think i should install nodejs to fix this issue

---

<div class="post-metadata">

**Author:** ![Norbert\_Melzer](https://avatars.discourse-cdn.com/v4/letter/n/e0b2c6/32.png) [@Norbert\_Melzer](https://discuss.rubyonrails.org/u/Norbert_Melzer)\
**Post date:** [July 20, 2012, 5:18pm UTC](https://discuss.rubyonrails.org/t/can-not-fix-the-can-not-find-javascript-runtime-issue/64542/5 "2012-07-20T17:18:00Z")

</div>

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.
