ruby 1.9.2 下运行rails 3.1.0.rc4,报错Could not find a JavaScript runtime

其实解决办法在报错位置就可以看到,https://github.com/sstephenson/execjs

rails server
就遇到了 `autodetect’: Could not find a JavaScript runtime.
rvm gem install execjs
安装顺利,但是错误,找不到js运行库,建议我安装execjs,google一下后发现所谓缺少的js运行库是os级别的,ruby装在gem里面的不算数,于是:
sudo apt-get install nodejs
ok,终于把WEBrick跑起来了。

相关文章:

  • 2021-09-14
  • 2021-06-18
  • 2021-10-13
  • 2021-07-27
  • 2022-02-07
  • 2021-05-16
  • 2021-07-17
  • 2021-04-12
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-01
  • 2021-11-09
  • 2021-08-22
  • 2022-12-23
  • 2021-12-17
相关资源
相似解决方案