Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
error on db:create
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
roelof  
View profile  
 More options Sep 5 2012, 3:07 am
From: roelof <rwob...@hotmail.com>
Date: Wed, 5 Sep 2012 00:07:46 -0700 (PDT)
Local: Wed, Sep 5 2012 3:07 am
Subject: error on db:create

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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Attila  
View profile  
 More options Sep 5 2012, 10:57 am
From: Attila <attila.gyor...@gmail.com>
Date: Wed, 5 Sep 2012 16:57:04 +0200
Local: Wed, Sep 5 2012 10:57 am
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 => :ruby
end

(Obviously you're going to have to bundle your application afterwards.)

Hope this explains and helps.

-- Attila

--
Attila
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kurt Stephens  
View profile  
 More options Sep 5 2012, 11:30 am
From: Kurt Stephens <kurt...@gmail.com>
Date: Wed, 5 Sep 2012 10:30:57 -0500
Local: Wed, Sep 5 2012 11:30 am
Subject: Re: error on db:create

REE is not a complete *Rails* platform.  Read the Ruby on Rails
documentation.

-- KAS
On Sep 5, 2012 9:51 AM, "roelof" <rwob...@hotmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roelof Wobben  
View profile  
 More options Sep 5 2012, 11:44 am
From: Roelof Wobben <rwob...@hotmail.com>
Date: Wed, 5 Sep 2012 15:41:33 +0000
Local: Wed, Sep 5 2012 11:41 am
Subject: RE: error on db:create

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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions