Re: enabling ELF, command not found
"Taylor, ForrestX" <[email protected]>
| Newsgroups | gmane.linux.redhat.release.guinness |
|---|---|
| Message-ID | <[email protected]> |
Werner, Roger NAVAIR wrote: > Ah, yes. Apparently it is. However, I have an ELF binary which reports > a "command-not-found" error when we try to run it. Examination of the > binary reveals strings "libm.so.5" and "libld-linux.so.1". I don't have > either in /usr/lib. Does their mention in the executable imply that > they are needed at runtime, and if so, where would one get them? > > The "command not found" error also suggests to me a possible scenario > such as a system(<command>); statement somewhere within the program, and > perhaps it is that command which is not found. Unfortunately, I do not > have the source code, so I expect that standard debuggers would not help > me to determine what command is not found. Is there a way to find out > WHAT command is not found? (sometimes I've run into a similar error > when a script starts with something like #!/bin/sh or #!/bin/ksh and > that file doesn't exist on the system.) > > Could the version of linux be relevant? and if so, is there a way I > could tell from the binary what version it needs to run on? > > roger A quick look at rpmfind.net shows that Red Hat 6.2 had libc-5.3.12-31 which provided libm.so.5. These are old libraries, because even Red Hat 5.1 had these libraries, and called them old ;o) "libld-linux.so.1" didn't turn up anything, but ld-linux.so.1 did (ld.so-1.9.5-13 for Red Hat 6.2). It looks like you need a Red Hat 6.2 CD and you should be able to install the packages that it needs. You should also try `ldd binary` (where binary is the program that you are trying to run). That may show you other libraries that it needs. Forrest --