XonX
2012-Feb-06 01:15 UTC
Can''t complete the Getting Started tutorial due to ExecJS::RuntimeError in Home#index
I have just installed Rails 3.2.1 on my Xubuntu using the gem system and I try to make the tutorial http://guides.rubyonrails.org/getting_started.html and on section 4.3 Setting the Application Home Page I get the following error ExecJS::RuntimeError in Home#index Showing /home/xonx/rails/blog/app/views/layouts/application.html.erb where line #6 raised: (in /home/xonx/rails/blog/app/assets/javascripts/home.js.coffee) Extracted source (around line #6): 3: <head> 4: <title>Blog</title> 5: <%= stylesheet_link_tag "application", :media => "all" %> 6: <%= javascript_include_tag "application" %> 7: <%= csrf_meta_tags %> 8: </head> 9: <body> Rails.root: /home/xonx/rails/blog I was doing everything exactly as said in the tutorial and don''t understand what the problem might be. -- 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.
Brynjolfur Thorvardsson
2012-Feb-06 09:46 UTC
SV: Can''t complete the Getting Started tutorial due to ExecJS::RuntimeError in Home#index
Your error message isn''t very informative! Do you have a javascript runtime installed? You can try: $sudo apt-get install nodejs Or adding gem ''therubyracer'', ''>=0.8.2'' to your Gemfile, then run bundle install. http://www.jamiestarke.com/2012/01/28/fixed-execjs-runtimeerror-and-fatal-error-v8contextnew-when-deploying-rails-to-shared-hosting/ -----Oprindelig meddelelse----- Fra: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-talk@googlegroups.com] På vegne af XonX Sendt: 6. februar 2012 02:16 Til: Ruby on Rails: Talk Emne: [Rails] Can''t complete the Getting Started tutorial due to ExecJS::RuntimeError in Home#index I have just installed Rails 3.2.1 on my Xubuntu using the gem system and I try to make the tutorial http://guides.rubyonrails.org/getting_started.html and on section 4.3 Setting the Application Home Page I get the following error ExecJS::RuntimeError in Home#index Showing /home/xonx/rails/blog/app/views/layouts/application.html.erb where line #6 raised: (in /home/xonx/rails/blog/app/assets/javascripts/home.js.coffee) Extracted source (around line #6): 3: <head> 4: <title>Blog</title> 5: <%= stylesheet_link_tag "application", :media => "all" %> 6: <%= javascript_include_tag "application" %> 7: <%= csrf_meta_tags %> 8: </head> 9: <body> Rails.root: /home/xonx/rails/blog I was doing everything exactly as said in the tutorial and don''t understand what the problem might be. -- 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. -- 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.
XonX
2012-Feb-06 22:37 UTC
Re: Can''t complete the Getting Started tutorial due to ExecJS::RuntimeError in Home#index
> Your error message isn''t very informative!Yeah, but it''s the only one I''ve got, unfortunately.> gem ''therubyracer'', ''>=0.8.2''It helped. The error disappeared. Thank you. On Feb 6, 11:46 am, Brynjolfur Thorvardsson <bi...-6eh5JQIm30aHXe+LvDLADg@public.gmane.org> wrote:> Your error message isn''t very informative! Do you have a javascript runtime installed? You can try: > > $sudo apt-get install nodejs > > Or adding > > gem ''therubyracer'', ''>=0.8.2'' > > to your Gemfile, then run bundle install. > > http://www.jamiestarke.com/2012/01/28/fixed-execjs-runtimeerror-and-f... > > -----Oprindelig meddelelse----- > Fra: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-talk@googlegroups.com] På vegne afXonX > Sendt: 6. februar 2012 02:16 > Til: Ruby on Rails: Talk > Emne: [Rails] Can''t complete the Getting Started tutorial due to ExecJS::RuntimeError in Home#index > > I have just installed Rails 3.2.1 on my Xubuntu using the gem system and I try to make the tutorialhttp://guides.rubyonrails.org/getting_started.html > and on section 4.3 Setting the Application Home Page I get the following error > > ExecJS::RuntimeError in Home#index > > Showing /home/xonx/rails/blog/app/views/layouts/application.html.erb > where line #6 raised: > > (in /home/xonx/rails/blog/app/assets/javascripts/home.js.coffee) > Extracted source (around line #6): > > 3: <head> > 4: <title>Blog</title> > 5: <%= stylesheet_link_tag "application", :media => "all" %> > 6: <%= javascript_include_tag "application" %> > 7: <%= csrf_meta_tags %> > 8: </head> > 9: <body> > Rails.root: /home/xonx/rails/blog > > I was doing everything exactly as said in the tutorial and don''t understand what the problem might be. > > -- > 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 athttp://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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Peter Vandenabeele
2012-Feb-06 22:48 UTC
Re: Can''t complete the Getting Started tutorial due to ExecJS::RuntimeError in Home#index
On Mon, Feb 6, 2012 at 10:46 AM, Brynjolfur Thorvardsson <binni-6eh5JQIm30aHXe+LvDLADg@public.gmane.org>wrote:> Your error message isn''t very informative! Do you have a javascript > runtime installed? You can try: > > $sudo apt-get install nodejs >Out of curiosity. This worked on a Ubuntu 11.10, but on an Ubuntu 10.04 the package seems not present. Could it be the case that this package was only recently added to the Debian/Ubuntu standard package lists? Thanks, 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.
Reasonably Related Threads
- How can I get RVM/Passenger/Apache2 to play nicely together
- assest pipeline how to exclude some css files?
- ExecJS::RuntimeError in Home#index
- ExecJS::RuntimeError in Say#hello
- `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes