From: Peter Bailey Date: 2013-02-07T01:51:40+09:00 Subject: Re: Ruby 1.9.3-p362 on Mac OSX Jon Cairns wrote in post #1095566: >> >> 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. OK. I get: ruby 1.9.3p362 (2012-12-25 revision 38607) [x86_64-darwin12.2.0] I'm using RubyMine as my Ruby editor. I've never had a problem with it. But, I did delete the shebang and re-enter it. Still no luck. -- Posted via http://www.ruby-forum.com/.