Forum: Ruby on Rails autodetect': Could not find a JavaScript runtime

Posted by Jeff Kyzer (Guest)
on 2012-07-09 06:23
(Received via mailing list)
Hey

I was working with Railinstaller, but everytime i turned around I found
something new had changed.  Soo I thought I would give Ubuntu a try .  I 
do
like unix better then window.  anyway...  I created a new project then 
went
to run rail server only to find this error - autodetect': Could not find 
a
JavaScript runtime.

I cant seem to get around this problem - any thoughts

Thanks in advance
Jeff
Posted by Colin Law (Guest)
on 2012-07-09 09:27
(Received via mailing list)
On 9 July 2012 05:22, Jeff Kyzer <kyzereye@gmail.com> wrote:
> Hey
>
> I was working with Railinstaller, but everytime i turned around I found
> something new had changed.  Soo I thought I would give Ubuntu a try .  I do
> like unix better then window.  anyway...  I created a new project then went
> to run rail server only to find this error - autodetect': Could not find a
> JavaScript runtime.

Have a look at the Rails Guide on Getting Started.  Section 4.1
explains what this is about.

Colin
Posted by Chitrank Samaiya (Guest)
on 2012-07-09 10:37
(Received via mailing list)
Hi,

Include rubyracer and execjs gems in ur gemfile install the bundle and 
go
for it.
Posted by Jeff Kyzer (Guest)
on 2012-07-09 19:56
(Received via mailing list)
Is there somewhere that explains the new updates to gem files like 
needing
rubyracer or execjs - like what things have changed?  When I first 
started
working with rails about 4 months ago there was no need for
thanks
Posted by Greg Donald (destiney)
on 2012-07-09 20:35
(Received via mailing list)
On Mon, Jul 9, 2012 at 12:54 PM, Jeff Kyzer <kyzereye@gmail.com> wrote:
> Is there somewhere that explains the new updates to gem files like needing
> rubyracer or execjs - like what things have changed?  When I first started
> working with rails about 4 months ago there was no need for
> thanks

I looked and didn't see much either.  Ended up running `apt-get
install nodejs` to make it stop complaining.  Seems like they are
assuming a lot about anyone's particular website needs these days.
"Your website doesn't have a server side js backend?  You are so
2011!"


--
Greg Donald
Posted by Mandeep Kaur (Guest)
on 2012-07-10 07:45
(Received via mailing list)
On Mon, Jul 9, 2012 at 9:52 AM, Jeff Kyzer <kyzereye@gmail.com> wrote:
> Hey
>
> I was working with Railinstaller, but everytime i turned around I found
> something new had changed.  Soo I thought I would give Ubuntu a try .  I do
> like unix better then window.  anyway...  I created a new project then went
> to run rail server only to find this error - autodetect': Could not find a
> JavaScript runtime.

$ sudo apt-get install nodejs

This will remove your problem.

--
Mandeep Kaur
http://mandeepsimak.wordpress.com/
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.