I am having trouble with the Ruby on Rails for a windows 7 PC. During the installation on Ruby it said missing file ''lib'' Then every time I try to generate a scaffold or controller it says Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS: :RuntimeUnavailable) Attachments: http://www.ruby-forum.com/attachment/6928/Ruby.odt -- Posted via http://www.ruby-forum.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.
On Mon, Jan 23, 2012 at 6:24 AM, Mark F. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I am having trouble with the Ruby on Rails for a windows 7 PC. > > During the installation on Ruby it said missing file ''lib'' > > Then every time I try to generate a scaffold or controller it says > Could not find a JavaScript runtime. See > https://github.com/sstephenson/execjs for a list of available runtimes. > (ExecJS: :RuntimeUnavailable) >You "may" be able to find a work-around for this issue as follows: * edit the Gemfile * add the line to the bottom gem ''therubyracer'' * rerun bundle install I am not sure this will work on your set-up, but you could try. If it does not help, remove that newly added line and rerun bundle install 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.
On Jan 23, 2:24 am, "Mark F." <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I am having trouble with the Ruby on Rails for a windows 7 PC. > > During the installation on Ruby it said missing file ''lib'' > > Then every time I try to generate a scaffold or controller it says > Could not find a JavaScript runtime. Seehttps://github.com/sstephenson/execjsfor a list of available runtimes. > (ExecJS: :RuntimeUnavailable) >For some reason exejs is failing to find "cscript" (The default Windows JavaScript script engine) in your system. You can workaround that by installing latest Node.JS from here: http://blog.nodejs.org/2012/01/19/node-v0-6-8/ (Use the MSI installer) After you installed, close all the Command Prompt windows you have open and open them again, which will update the PATH so node.exe is accessible. You can verify it worked by doing: C:\>node --version v0.6.8 That should be the output. After that ExecJS should be working properly. -- Luis Lavena -- 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.
Possibly Parallel Threads
- Error in Creating a rubyonrails application
- rails generate scaffold - ERROR
- `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes
- Rails 3.1.rc1 + gem coffee-script - WEBrick and Unicorn hangs.
- installing ruby on rails 1.9.3 on windows 7