1

我已经在 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)。什么不见​​了?

4

1 回答 1

1

你需要安装nodejs

yum -y install nodejs

在 ubuntu 上

apt-get install nodejs
于 2015-02-04T21:21:53.617 回答