env: ruby\r: No such file or directory
I had a weird problem tonight with a Rails app I was looking at for work. Both the script/runner and the script/server scripts wouldn’t run. They would return this:
env: ruby\r: No such file or directory
So I dug into script/server and basically commented out and replaced all the lines. Now all the sudden it works and runner still doesn’t. Strange. Checked my env and all is right and also my PATH. Can’t seem to figure it out.
Maybe someone knows.
Category: Code
October 22nd, 2008 at 6:45 am
Windows, or maybe oldschool Mac-style CRLF in your scripts. There should only be an \n at the end.
October 22nd, 2008 at 1:56 pm
Indeed. That’s it. Thanks!