Thanks, Installing node.js did the trick. Roelof
Date: Wed, 5 Sep 2012 16:57:04 +0200
From: attila.gyor...@gmail.com
To: emm-ruby@googlegroups.com
Subject: Re: error on db:create
REE is only a Ruby interpreter with some tweaks and patches.
Based on the command you've posted, I am assuming you are using Rails. When running rake db:create, the Rails environment is loaded and in order to be able to load the asset pipeline stuff as well, it is trying to find a javascript runtime that could be used for Sprockets.
This case I usually suggest using Node.js that would be found automatically by Rails if it is available in the current PATH. To be honest I don't know how you would install it on CentOS, but I am sure there are corresponding packages available.
If you prefer not to install Node.js on your system, you could get around by adding 'therubyracer' gem into your application's Gemfile. Make sure to stick it into the :assets group:
group :assets do # See https://github.com/sstephenson/execjs#readme for more supported runtimes # gem 'therubyracer', :platforms => :rubyend
(Obviously you're going to have to bundle your application afterwards.)
Hope this explains and helps.
-- Attila
-- AttilaSent with Sparrow
On Wednesday, 5 September 2012 at 09:07, roelof wrote:
Hello,
I installed Ruby Enterprise Edition on CentOs 6 from source.
But when I do rake db:create I get this error message:
rake db:create
rake aborted!
Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes.
I thought that Ruby Enterprise Edition was a complete package.
Anyone knows how to solve this ?
Roelof
--
You received this message because you are subscribed to the Google Groups "Ruby Enterprise Edition" group.
To view this discussion on the web visit https://groups.google.com/d/msg/emm-ruby/-/e4LevfKOFPoJ.
To post to this group, send email to emm-ruby@googlegroups.com.
To unsubscribe from this group, send email to emm-ruby+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/emm-ruby?hl=en.
--
You received this message because you are subscribed to the Google Groups "Ruby Enterprise Edition" group.
To post to this group, send email to emm-ruby@googlegroups.com.
To unsubscribe from this group, send email to emm-ruby+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/emm-ruby?hl=en.