From: Rob Biedenharn Date: 2007-06-08T00:13:17+09:00 Subject: Re: Rails on a Mac, so strange (to me) behavior On Jun 7, 2007, at 10:55 AM, Mark wrote: > I have built Ruby from source, installed gems & rails on a MacBook > pro. I installed the source for a working Rails application in a > directory /rails_apps. I cd to the application directory under rails > apps and in the terminal I enter: > > script/server > > Terminal responds: > : No such file or directory > > sudo script/server provides the same response > ls -la script/server returns: > -rwxr-xr-x 1 pogo admin 98 Nov 13 2006 script/server > > I have all of 2 weeks experience on a Mac, which probably explains the > basic problem. Can someone advise? Try: ruby script/server Then, if that works, look at the #! line at the top of the file (head -1 script/server) Mine is: $ head -1 script/server #!/usr/bin/env ruby If yours is something else, then add a line that says where to find your ruby. (particularly if the first line is not a #! unless you just want to explicitly use "ruby script/whatever ..." Also, your ruby is where: which ruby says it is based on your path. -Rob Rob Biedenharn http://agileconsultingllc.com Rob@AgileConsultingLLC.com