[GE users] "cannot execute binary file"

Paul Smith pas50 at cam.ac.uk
Fri Dec 16 11:23:42 GMT 2005


Reuti wrote:
> 
> The "head" seems to look whether the first line gives the interpreter  
> for this script. This is usually a full path. As the standard-env  isn't 
> found: is the default $PATH not appropriate for your system?  One of 
> these two is working? Which Linux type? Is the "/etc/ ld.so.conf" on the 
> nodes containing all necessary paths to the libs?  Can you try to 
> compile your a.out as statically linked program and  try with a full 
> path /home/blabla/a.out?

-bash-2.05b$ qrsh /tmp/hello
/tmp/hello: /tmp/hello: cannot execute binary file
-bash-2.05b$ qrsh echo \$PATH
head: cannot open `echo' for reading: No such file or directory
echo: /bin/echo: cannot execute binary file
-bash-2.05b$ qrsh /bin/echo \$PATH
/bin/echo: /bin/echo: cannot execute binary file
-bash-2.05b$ cat script3
echo $PATH
-bash-2.05b$ qrsh script3
/usr/local/bin:/usr/bin:/bin:/gridware/sge/bin/lx26-amd64:/opt/mpich/ch-p4/bin:/usr/local/lam/bin:.
-bash-2.05b$

-bash-2.05b$gcc -static ../hello.c -o hello
-bash-2.05b$ gcc -static ../hello.c -o hello
-bash-2.05b$ ldd hello
         not a dynamic executable
-bash-2.05b$ pwd
/admin/pas/mpich-1.2.7p1
-bash-2.05b$ qrsh /admin/pas/mpich-1.2.7p1/hello
/admin/pas/mpich-1.2.7p1/hello: /admin/pas/mpich-1.2.7p1/hello: cannot 
execute binary file
-bash-2.05b$


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list