first,
gem 'libv8', '~> 3.11.8'===libv8 (~> 3.11.8.12) gem 'execjs'==========execjs (>= 0.3.0) gem 'therubyracer'====therubyracer (0.11.4)
is exists in gemfile
gemfile.lock show (libv8 (~> 3.11.8.12),execjs (>= 0.3.0),therubyracer (0.11.4))
centos5.7 have nodejs myproject no problem when use rake crontab error.
my run .sh type file
#!/bin/bash export path=$path:/usr/local/bin cd /abc && bundle exec rake rails_env=production sync:abc
errors
warning: nls_lang not set. fallback us7ascii. rake aborted! not find javascript runtime. see https://github.com/sstephenson/execjs list of available runtimes. /opt/app/ruby/lib/ruby/gems/1.9.1/gems/execjs-1.4.0/lib/execjs/runtimes.rb:51:in autodetect' /opt/app/ruby/lib/ruby/gems/1.9.1/gems/execjs-1.4.0/lib/execjs.rb:5:inmodule:execjs' /opt/app/ruby/lib/ruby/gems/1.9.1/gems/execjs-1.4.0/lib/execjs.rbin ' /opt/app/ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:240:inrequire' /opt/app/ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:240:in block in require' /opt/app/ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:223:inblock in load_dependency'
you need install nodejs above gem has dependancy of it. list of installation repository links here https://github.com/sstephenson/execjs
but mentioned nodjs installed. can give lib , include path while installing gem system.
and if unbuntu user can install command
apt-get install nodejs
Comments
Post a Comment