Cannot execute binary file
Scenario:
We have a backup tape from a client's server and are trying to recover a program & data. The progam and all relevant / required files are contained within one directory. We have restored the directory from the tape onto our own linux box. The client was running RH 7, and we have tried this on both an RH 7 and RHEL 3 box. We have verified that ownership and permissions are set correctly. [root@dhcp999-999 acme]# ./acme bash: ./acme: cannot execute binary file [root@dhcp999-999 acme]# file -z acme acme: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV) (compress'd data 13 bits) What does this mean? How can I get this program to run again? Thanks in advance!! |
Hi -
The "compress'd" part of the message concerns me. I was surprised to see that if I compressed an executable, "file -z" would still report the correct type ("ELF 32-bit LSB executable...) - even for a .Z or .gz. Is it possible that your client's tape was a compressed archive, and perhaps you should re-extract with "tar -z" or "tar -j" (as approopriate)? Just a thought .. PSM |
Interesting thought ... the files and directories are as they should be. The executables have no extension (acme not acme.z).
It might be interesting to try unzipping them or something. |
Code:
[root@dhcp999-999 acme]# file -z acme Quote:
If the file was compressed with gzip then it would normally say gzip compressed file, so I suspect it was created using the older compress command or similar. gzip can handle different compression formats so I suggest you try renaming to add .Z on the end and then try gunzip'ing the command and see if that works. |
Quote:
|
All times are GMT -5. The time now is 03:37 AM. |