我在RHEL7上安装了ruby等。然后我做了一个" rails new hello_app"。当我运行" rails server"时,我得到了
Warning: You're using Rubygems 2.0.14 with Spring. Upgrade to at least Rubygems 2.1.0 and run `gem pristine --all` for better startup performance.
/usr/local/share/gems/gems/abrt-0.1.0/lib/abrt.rb:6:in `require': cannot load such file -- abrt/handler (LoadError)
from /usr/local/share/gems/gems/abrt-0.1.0/lib/abrt.rb:6:in `block in <top (required)>'
/usr/local/share/gems/gems/execjs-2.3.0/lib/execjs/runtimes.rb:45: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/share/gems/gems/execjs-2.3.0/lib/execjs.rb:5:in `<module:ExecJS>'
对execjs的github引用并不是很有用。我安装了RHEL7 js-1.8.5-17.el7.x86_64以及execjs(2.3.0)。缺少什么?
答案 0 :(得分:1)
您需要安装nodejs
yum -y install nodejs
在ubuntu上
apt-get install nodejs