尝试设置CI乔( https://github.com/defunkt/cijoe ),我得到以下错误:
/usr/bin/env: ruby1.8: No such file or directory
CI乔作为万维网数据运行,我正在运行的命令是
RAILS_ENV=test bundle exec rake -s test
当我以www-data(sudo su www-data)的身份login时,执行相同的命令。 所以我想弄清楚什么可能是错的。
$ which ruby1.8 /usr/bin/ruby1.8
这个问题类似于:
https://stackoverflow.com/questions/6126165/usr-bin-env-ruby-1-8-no-such-file-or
在用户的$ PATH中找不到ruby1.8。 你需要设置正确的$ PATH。