/ usr / bin / env:ruby1.8:没有这样的文件或目录

问题

尝试设置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时,执行相同的命令。 所以我想弄清楚什么可能是错的。

debugging输出

 $ 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。