reynierpm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2012-Mar-02 06:04 UTC
Can''t start server, why?
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)
from
/usr/local/rvm/gems/ruby-1.9.3-p125/gems/execjs-1.3.0/lib/execjs.rb:5:in
`<module:ExecJS>''
from
/usr/local/rvm/gems/ruby-1.9.3-p125/gems/execjs-1.3.0/lib/execjs.rb:4:in
`<top (required)>''
from
/usr/local/rvm/gems/ruby-1.9.3-p125/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in
`require''
from
/usr/local/rvm/gems/ruby-1.9.3-p125/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in
`<top (required)>''
from
/usr/local/rvm/gems/ruby-1.9.3-p125/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in
`require''
from
/usr/local/rvm/gems/ruby-1.9.3-p125/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in
`<top (required)>''
from
/usr/local/rvm/gems/ruby-1.9.3-p125/gems/coffee-rails-3.2.2/lib/coffee-rails.rb:1:in
`require''
from
/usr/local/rvm/gems/ruby-1.9.3-p125/gems/coffee-rails-3.2.2/lib/coffee-rails.rb:1:in
`<top (required)>''
from
/usr/local/rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/lib/bundler/runtime.rb:68:in
`require''
from
/usr/local/rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/lib/bundler/runtime.rb:68:in
`block (2 levels) in require''
from
/usr/local/rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/lib/bundler/runtime.rb:66:in
`each''
from
/usr/local/rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/lib/bundler/runtime.rb:66:in
`block in require''
from
/usr/local/rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/lib/bundler/runtime.rb:55:in
`each''
from
/usr/local/rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/lib/bundler/runtime.rb:55:in
`require''
from
/usr/local/rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/lib/bundler.rb:122:in
`require''
from /var/www/html/jobapp/config/application.rb:7:in `<top
(required)>''
from
/usr/local/rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/lib/rails/commands.rb:53:in
`require''
from
/usr/local/rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/lib/rails/commands.rb:53:in
`block in <top (required)>''
from
/usr/local/rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/lib/rails/commands.rb:50:in
`tap''
from
/usr/local/rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/lib/rails/commands.rb:50:in
`<top (required)>''
from script/rails:6:in `require''
from script/rails:6:in `<main>''
What is missing there? Why I can''t test my application?
Ing. Reynier Pérez Mira
http://reynierpm.site90.com/
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
On Fri, Mar 2, 2012 at 7:04 AM, reynierpm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <reynierpm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
> $ rake environment(in /var/www/html/jobapp) rake aborted! Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (See full trace by running task with --trace) > 2) Add the line > > gem ''therubyracer'' > > to your Gemfile I''ve stopped here because I''m starting with Ruby and RoR and not know what you mean. Could you explain me a bit? Sorry for my ignorance but I''m just learning Ing. Reynier Perez Mira eMail: reynierpm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, reynierpm-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org Skype: reynierpm Mobile: +58 424.180.5609 Site: http://reynierpm.site90.com -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Open the file called Gemfile at the root of your project and add this line: gem ''therubyracer''. Save the file and run bundle install. Bruno Coelho Santiago On Fri, Mar 2, 2012 at 8:46 AM, ReynierPM <reynierpm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > $ rake environment > > (in /var/www/html/jobapp) > rake aborted! > > Could not find a JavaScript runtime. See https://github.com/** > sstephenson/execjs <https://github.com/sstephenson/execjs> for a list of > available runtimes. > > (See full trace by running task with --trace) > > > > 2) Add the line > > > > gem ''therubyracer'' > > > > to your Gemfile > > I''ve stopped here because I''m starting with Ruby and RoR and not know what > you mean. Could you explain me a bit? Sorry for my ignorance but I''m just > learning > > Ing. Reynier Perez Mira > eMail: reynierpm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, reynierpm-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org > Skype: reynierpm > Mobile: +58 424.180.5609 > Site: http://reynierpm.site90.com > > > -- > 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 rubyonrails-talk@googlegroups.**com<rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe@**googlegroups.com<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at http://groups.google.com/** > group/rubyonrails-talk?hl=en<http://groups.google.com/group/rubyonrails-talk?hl=en> > . > >-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 2 March 2012 11:46, ReynierPM <reynierpm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:>> $ rake environment > > (in /var/www/html/jobapp) > rake aborted! > > Could not find a JavaScript runtime. See > https://github.com/sstephenson/execjs for a list of available runtimes. > > (See full trace by running task with --trace) > > >> 2) Add the line >> >> gem ''therubyracer'' >> >> to your Gemfile > > I''ve stopped here because I''m starting with Ruby and RoR and not know what > you mean. Could you explain me a bit? Sorry for my ignorance but I''m just > learningIn the top level folder of your rails project you will find a file Gemfile. Add the line gem ''therubyracer'' to that (in fact I think you may find it there already, but commented out, and then run bundle install. Of course you could have found this out with a bit of googling. Colin -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
reynierpm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2012-Mar-02 15:14 UTC
Re: Can''t start server, why?
Ok and thanks now it works fine :) Ing. Reynier Perez Mira eMail: reynierpm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, reynierpm-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org Skype: reynierpm Mobile: +58 424.180.5609 Site: http://reynierpm.site90.com On Fri, Mar 2, 2012 at 9:04 AM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 2 March 2012 11:46, ReynierPM <reynierpm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> $ rake environment > > > > (in /var/www/html/jobapp) > > rake aborted! > > > > Could not find a JavaScript runtime. See > > https://github.com/sstephenson/execjs for a list of available runtimes. > > > > (See full trace by running task with --trace) > > > > > >> 2) Add the line > >> > >> gem ''therubyracer'' > >> > >> to your Gemfile > > > > I''ve stopped here because I''m starting with Ruby and RoR and not know > what > > you mean. Could you explain me a bit? Sorry for my ignorance but I''m just > > learning > > In the top level folder of your rails project you will find a file > Gemfile. Add the line gem ''therubyracer'' to that (in fact I think you > may find it there already, but commented out, and then run bundle > install. > > Of course you could have found this out with a bit of googling. > > Colin > > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.