From: Florian Gross Date: 2005-01-19T21:31:02+09:00 Subject: Re: Bad interpreter CT wrote: >>If I try to run instiki by typing 'ruby instiki' it works just fine. >>But if I ever try running it as ./instiki I get: >> >>: bad interpreter: No such file or directory > > I have the same problem with my ubuntu installation at home, googling > leads me to info about trailing ^M characters at the end of the > "shebang" line(the "#!/usr/bin/ruby" line at the top of the script). > Haven't checked this, though. Try removing any such control characters > at the end of the shebang line and see if it works. I think this issue will be fixed in the next Ruby release when you do #!/usr/bin/ruby -w (Might also not occur in it when you have a space after the "ruby", I'm not sure here, but "-w" is a good idea anyway.)