Complete.Org: Mailing Lists: Archives: linux-help: August 2000:
[linux-help] Re: program won't execute.
Home

[linux-help] Re: program won't execute.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "linux-help@xxxxxxxxx" <linux-help@xxxxxxxxx>
Subject: [linux-help] Re: program won't execute.
From: Carl D Cravens <raven@xxxxxxxxxxx>
Date: Mon, 7 Aug 2000 12:35:27 -0500 (CDT)
Reply-to: linux-help@xxxxxxxxx

On Mon, 7 Aug 2000, mjacobs wrote:

> root@hal:/usr/local/httpd/htdocs/mh/bin > ./configure
> bash: ./configure: No such file or directory

This isn't bash saying it can't find configure, it's bash saying that
configure executed a command that generated an error of "No such file or
directory".  You script is executing, but it has a bug.  

Generally, you get this error, it means you're using a #! construct (like
#!/bin/sh) and bash can't find whatever program you've told it to
use.  But you say you're using #!/bin/sh and /bin/sh exists... make sure
there aren't any typos.  Delete the line and retype it to eliminate hidden
characters.  (If the script came from a DOS environment (like when my wife
edits files from her Windows box using Samba) and there's a CRLF on the
end of the line, bash is looking to execute /bin/sh<CR>.)  

If the first command after that is 'echo', make sure that echo is in the
path or you indicate the full path 

--
Carl D Cravens (raven@xxxxxxxxxxx)
BASIC programmers never die, they GOSUB without RETURN.




-- This is the linux-help@xxxxxxxxx list.  To unsubscribe,
visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi


[Prev in Thread] Current Thread [Next in Thread]