From: Jonathan Cairns Date: 2013-02-07T01:39:24+09:00 Subject: Re: Ruby 1.9.3-p362 on Mac OSX --047d7b62214c97689404d510f4f7 Content-Type: text/plain; charset=ISO-8859-1 > > OK. Did that. And, yes, now I see that Ruby directory in my path, first > thing in fact. But, I'm still getting "env: ruby\r: No such file or > directory" when I try to run a Ruby script, one with the shebang you > told me of earlier. I think Hassan's right, that \r looks out of place. That's a carriage return character, which shouldn't be there. Just try running this from the command line: $ /usr/bin/env ruby -v If you get the ruby version printed out then the problem isn't your path or RVM set up, it's a character issue in the file that you're trying to run. All decent text editors/IDEs have an option to show special characters. Try deleting the entire "#!/usr/bin/env ruby" line and retyping it by hand, then running again. -- *Jon Cairns* * * e-mail: jon@joncairns.com website: http://joncairns.com twitter: @joonty --047d7b62214c97689404d510f4f7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
OK. Did that. And, yes, now I = see that Ruby directory in my path, first
thing in fact. But, I'm still getting "env: ruby\r: No such file o= r
directory" when I try to run a Ruby script, one with the shebang youtold me of earlier.

I think Hassan's right, tha= t \r looks out of place. That's a carriage return character, which shou= ldn't be there. Just try running this from the command line:

=A0 =A0 $ /= usr/bin/env ruby -v

If you get the ruby version printed out then the problem isn&= #39;t your path or RVM set up, it's a character issue in the file that = you're trying to run. All decent text editors/IDEs have an option to sh= ow special characters. Try deleting the entire "#!/usr/bin/env ruby&qu= ot; line and retyping it by hand, then running again.

--
Jon Cairns

e-ma= il:=A0jon@joncairns.com
twitter= :=A0@joonty
--047d7b62214c97689404d510f4f7--