简体   繁体   English

无法在RedHat中安装/识别Javascript运行时(对于Rails 3.1)

[英]Can't Get a Javascript Runtime Installed/Recognized in RedHat (for Rails 3.1)

Trying to setup a production deployment on a dedicated box running RedHat (64bit): 尝试在运行RedHat(64位)的专用设备上设置生产部署:

# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 5.6 (Tikanga)

For the life of me, I can't get a Javascript Runtime installed and/or recognized by my Rails 3.1.0rc6 app. 为了我的一生,我无法在Rails 3.1.0rc6应用程序中安装和/或识别Javascript Runtime。

I've done a gem install of execjs, therubyracer, libv8, and mustang ... still get this error after restarting: 我已经完成了execjs,therubyracer,libv8和Mustang的gem安装...重启后仍然出现此错误:

ActionView::Template::Error (Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes.
  (in /var/www/demo-setup/releases/20110825184931/app/assets/javascripts/demos.js.coffee)):

Also installed node.js but still get this error. 还安装了node.js,但仍然出现此错误。

Any ideas? 有任何想法吗?

I don't know what the solution is, but maybe this will help: 我不知道解决方案是什么,但这也许会有所帮助:

The error is being thrown from ExecJS here . 错误是从ExecJS 在这里抛出的。 If therubyracer gem is installed, then it should be detected by the line require "v8" here . 如果安装了therubyracer gem,则应在此处 require "v8"的行中对其进行检测。

Can you require "v8" successfully from irb ? 您可以从irb成功require "v8"吗? If so, then that tells you that Rails is being run on a different set of gems somehow. 如果是这样,那么这将告诉您Rails正在以某种方式在另一组gem上运行。 Are you using rvm? 您正在使用rvm吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM