bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't execute file from command line


From: Paul Jarc
Subject: Re: Can't execute file from command line
Date: Sat, 03 Jan 2009 17:55:17 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

men8th <address@hidden> wrote:
> address@hidden:/usr/local/SunStudio12ml-linux-x86-200709-ii/sunstudio12/prod/bin$
> ./CC
> bash: ./CC: No such file or directory
>
> However, the file clearly is there. Here is an extract of ls -l

The problem could be that CC is a script, and the interpreter on its
#! line does not exist.  (Or it could be an ELF binary, and the ELF
dynamic loader specified in the binary doesn't exist.)  This can
happen if the script has CRLF (carriage return + line feed) line
endings instead of just LF.  The carriage return character is treated
as part of the interpreter filename.  Removing the carriage returns
would fix that.

The problem is unlikely to be in bash itself, so if the above
suggestion doesn't help, you're more likely to find the answer in a
forum for Sun Studio than for bash.


paul




reply via email to

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