On Fri, Mar 2, 2012 at 7:04 AM, [email protected] <[email protected]> wrote: > Hi: > I'm trying to run rails server and I get this error: > > [root@ruby-devserver config]# rails server > /usr/local/rvm/gems/ruby-1.9.3-p125/gems/execjs-1.3.0/lib/execjs/runtimes.rb:50:in > `autodetect': Could not find a JavaScript runtime. See > https://github.com/sstephenson/execjs for a list of available runtimes. > (ExecJS::RuntimeUnavailable)
There needs to be one Javascript runtime installed as a gem. 1) Try $ rake environment this will probably fail 2) Add the line gem 'therubyracer' to your Gemfile 3) run $ bundle install this should install a few additional gems (related to v8). 4) try $ rake environment again and now it should not fail HTH, Peter -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

