men8th <t...@avacta.com> wrote: > t...@ggeom:/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