Hi all, ruby: 1.9.2 rails: 3.2.3 OS: redhat5 I create a new rails project. --> ''rails proj3'' I exec "rails server" want to check it can start or not, but it show below error message. ************************************************* /usr/local/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/script_rails_loader.rb:11: warning: Insecure world writable dir /home/u337user/gavin in PATH, mode 040777 /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/runtime.rb:211: warning: Insecure world writable dir /home/u337user/gavin in PATH, mode 040777 /usr/local/ruby/lib/ruby/gems/1.9.1/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/ruby/lib/ruby/gems/1.9.1/gems/execjs-1.3.0/lib/execjs.rb:5:in `<module:ExecJS>'' from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/execjs-1.3.0/lib/execjs.rb:4:in `<top (required)>'' from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in `require'' from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in `<top (required)>'' from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in `require'' from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in `<top (required)>'' from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/coffee-rails-3.2.2/lib/coffee-rails.rb:1:in `require'' from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/coffee-rails-3.2.2/lib/coffee-rails.rb:1:in `<top (required)>'' from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/runtime.rb:68:in `require'' from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/runtime.rb:68:in `block (2 levels) in require'' from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/runtime.rb:66:in `each'' from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/runtime.rb:66:in `block in require'' from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `each'' from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `require'' from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler.rb:119:in `require'' from /home/u337user/gavin/rails_project/proj3/config/application.rb:7:in `<top (required)>'' from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:53:in `require'' from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:53:in `block in <top (required)>'' from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:50:in `tap'' from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:50:in `<top (required)>'' from script/rails:6:in `require'' from script/rails:6:in `<main>'' ************************************************************ I recently should move the ROR server to redhat5 from winXP. In WinXP, I didn''t see those problems. Does someone can give me a help? Thanks, -- 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.
CC Chen wrote in post #1055038:> Hi all, > > > ruby: 1.9.2 > rails: 3.2.3 > OS: redhat5 > > I create a new rails project. --> ''rails new proj3'' > > I exec "rails server" want to check it can start or not, > > but it show below error message. > > > > ************************************************* > >/usr/local/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/script_rails_loader.rb:11:> warning: Insecure world writable dir /home/u337user/gavin in PATH, mode > 040777 >/usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/runtime.rb:211:> warning: Insecure world writable dir /home/u337user/gavin in PATH, mode > 040777 >/usr/local/ruby/lib/ruby/gems/1.9.1/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/ruby/lib/ruby/gems/1.9.1/gems/execjs-1.3.0/lib/execjs.rb:5:in > `<module:ExecJS>'' > from > /usr/local/ruby/lib/ruby/gems/1.9.1/gems/execjs-1.3.0/lib/execjs.rb:4:in > `<top (required)>'' > from >/usr/local/ruby/lib/ruby/gems/1.9.1/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in> `require'' > from >/usr/local/ruby/lib/ruby/gems/1.9.1/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in> `<top (required)>'' > from >/usr/local/ruby/lib/ruby/gems/1.9.1/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in> `require'' > from >/usr/local/ruby/lib/ruby/gems/1.9.1/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in> `<top (required)>'' > from >/usr/local/ruby/lib/ruby/gems/1.9.1/gems/coffee-rails-3.2.2/lib/coffee-rails.rb:1:in> `require'' > from >/usr/local/ruby/lib/ruby/gems/1.9.1/gems/coffee-rails-3.2.2/lib/coffee-rails.rb:1:in> `<top (required)>'' > from >/usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/runtime.rb:68:in> `require'' > from >/usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/runtime.rb:68:in> `block (2 levels) in require'' > from >/usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/runtime.rb:66:in> `each'' > from >/usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/runtime.rb:66:in> `block in require'' > from >/usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in> `each'' > from >/usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in> `require'' > from > /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler.rb:119:in > `require'' > from > /home/u337user/gavin/rails_project/proj3/config/application.rb:7:in > `<top (required)>'' > from >/usr/local/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:53:in> `require'' > from >/usr/local/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:53:in> `block in <top (required)>'' > from >/usr/local/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:50:in> `tap'' > from >/usr/local/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:50:in> `<top (required)>'' > from script/rails:6:in `require'' > from script/rails:6:in `<main>'' > ************************************************************ > > > I recently should move the ROR server to redhat5 from winXP. > > In WinXP, I didn''t see those problems. > > > > Does someone can give me a help? > > > > Thanks,I solved this problem by add "gem ''execjs''" and "gem ''therubyracer''" Thanks, -- 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.
Installing Nodejs might be best but Gems mentioned here are also solve this problem: $ gem install execjs therubyracer On Apr 5, 4:40 am, CC Chen <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> CC Chen wrote in post #1055038: > > > > > > > > > Hi all, > > > ruby: 1.9.2 > > rails: 3.2.3 > > OS: redhat5 > > > I create a new rails project. --> ''rails new proj3'' > > > I exec "rails server" want to check it can start or not, > > > but it show below error message. > > > ************************************************* > > /usr/local/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/script_ra ils_loader.rb:11:> warning: Insecure world writable dir /home/u337user/gavin in PATH, mode > > 040777 > > /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/runtime. rb:211:> warning: Insecure world writable dir /home/u337user/gavin in PATH, mode > > 040777 > > /usr/local/ruby/lib/ruby/gems/1.9.1/gems/execjs-1.3.0/lib/execjs/runtimes.r b:50:in> `autodetect'': Could not find a JavaScript runtime. See > >https://github.com/sstephenson/execjsfor a list of available runtimes. > > (ExecJS::RuntimeUnavailable) > > from > > /usr/local/ruby/lib/ruby/gems/1.9.1/gems/execjs-1.3.0/lib/execjs.rb:5:in > > `<module:ExecJS>'' > > from > > /usr/local/ruby/lib/ruby/gems/1.9.1/gems/execjs-1.3.0/lib/execjs.rb:4:in > > `<top (required)>'' > > from > > /usr/local/ruby/lib/ruby/gems/1.9.1/gems/coffee-script-2.2.0/lib/coffee_scr ipt.rb:1:in> `require'' > > from > > /usr/local/ruby/lib/ruby/gems/1.9.1/gems/coffee-script-2.2.0/lib/coffee_scr ipt.rb:1:in> `<top (required)>'' > > from > > /usr/local/ruby/lib/ruby/gems/1.9.1/gems/coffee-script-2.2.0/lib/coffee-scr ipt.rb:1:in> `require'' > > from > > /usr/local/ruby/lib/ruby/gems/1.9.1/gems/coffee-script-2.2.0/lib/coffee-scr ipt.rb:1:in> `<top (required)>'' > > from > > /usr/local/ruby/lib/ruby/gems/1.9.1/gems/coffee-rails-3.2.2/lib/coffee-rail s.rb:1:in> `require'' > > from > > /usr/local/ruby/lib/ruby/gems/1.9.1/gems/coffee-rails-3.2.2/lib/coffee-rail s.rb:1:in> `<top (required)>'' > > from > > /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/runtime. rb:68:in> `require'' > > from > > /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/runtime. rb:68:in> `block (2 levels) in require'' > > from > > /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/runtime. rb:66:in> `each'' > > from > > /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/runtime. rb:66:in> `block in require'' > > from > > /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/runtime. rb:55:in> `each'' > > from > > /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/runtime. rb:55:in> `require'' > > from > > /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler.rb:119:i n > > `require'' > > from > > /home/u337user/gavin/rails_project/proj3/config/application.rb:7:in > > `<top (required)>'' > > from > > /usr/local/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/commands. rb:53:in> `require'' > > from > > /usr/local/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/commands. rb:53:in> `block in <top (required)>'' > > from > > /usr/local/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/commands. rb:50:in> `tap'' > > from > > /usr/local/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/commands. rb:50:in > > > > > > > > > > > `<top (required)>'' > > from script/rails:6:in `require'' > > from script/rails:6:in `<main>'' > > ************************************************************ > > > I recently should move the ROR server to redhat5 from winXP. > > > In WinXP, I didn''t see those problems. > > > Does someone can give me a help? > > > Thanks, > > I solved this problem by add "gem ''execjs''" and "gem ''therubyracer''" > > Thanks, > > -- > Posted viahttp://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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.