Re: Executable error: No such file or directoy.

From: Robert Heller (heller_at_deepsoft.com)
Date: 09/09/04


Date: Thu, 09 Sep 2004 01:12:13 +0200


  TLOlczyk <olczyk2002@yahoo.com>,
  In a message on Tue, 07 Sep 2004 17:46:20 -0500, wrote :

T> On Tue, 07 Sep 2004 08:46:32 -0700, John Reiser <jreiser@BitWagon.com>
T> wrote:
T>
T> >> I am trying to execute a file, foo.
T> >> "file foo" tells me it is an ELF executable.
T> >> "ls foo" tells me that it is there and is no 0 bytes.
T> >> "cat foo" throughs all kinds of garbage on my screen.
T> >> Permissions OK.
T> >>
T> >> But when I execute it I get the error message:
T> >> bash: full_path_to_foo: No such file or directory.
T> >
T> >Probably the PT_INTERP (the <elf.h> program interpreter, the piece
T> >that handles shared libraries) is the file that triggers "No such file
T> >or directory." Run
T> > readelf --segments foo
T> >to check the PT_INTERP string. For instance:
T> >-----
T> >Program Headers:
T> > Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
T> > PHDR 0x000034 0x08048034 0x08048034 0x000c0 0x000c0 R E 0x4
T> > INTERP 0x0000f4 0x080480f4 0x080480f4 0x00013 0x00013 R 0x1
T> > [Requesting program interpreter: /lib/ld-linux.so.2]
T> >-----
T> >and in this case /lib/ld-linux.so.2 is OK; the executable will run.
T>
T> That hit the nail on the head. It uses /lib/ld-linux.so.1.
T>
T> I know this is probably a futile question,
T> but is there a way to convert the file so that it can be loaded by
T> /lib/ld-linux.so.2?
T> I can recompile from sources but that is going to be a very long and
T> difficult process.

Asside from installing /lib/ld-linux.so.1 (and the matching batch of old
.so files), your only choice is re-compilation.

T>
T>
T> The reply-to email address is olczyk2002@yahoo.com.
T> This is an address I ignore.
T> To reply via email, remove 2002 and change yahoo to
T> interaccess,
T>
T> **
T> Thaddeus L. Olczyk, PhD
T>
T> There is a difference between
T> *thinking* you know something,
T> and *knowing* you know something.
T>

                                     \/
Robert Heller ||InterNet: heller@cs.umass.edu
http://vis-www.cs.umass.edu/~heller || heller@deepsoft.com
http://www.deepsoft.com /\FidoNet: 1:321/153

                                            



Relevant Pages

  • Re: Forth Frustrations
    ... If you have a word that accepts a string then it's easy to get the ... we could do "FOO to tell the compiler to keep FOO ready, ... The address was HERE after the child was completed. ... lay down the two literals and then the execute, ...
    (comp.lang.forth)
  • Re: Forth Frustrations
    ... If you have a word that accepts a string then it's easy to get the ... we could do "FOO to tell the compiler to keep FOO ready, ... The address was HERE after the child was completed. ... lay down the two literals and then the execute, ...
    (comp.lang.forth)
  • Re: Forth Frustrations
    ... If you have a word that accepts a string then it's easy to get the ... we could do "FOO to tell the compiler to keep FOO ready, ... The address was HERE after the child was completed. ... lay down the two literals and then the execute, ...
    (comp.lang.forth)
  • Re: Forth Frustrations
    ... If you have a word that accepts a string then it's easy to get the ... we could do "FOO to tell the compiler to keep FOO ready, ... The address was HERE after the child was completed. ... lay down the two literals and then the execute, ...
    (comp.lang.forth)
  • Re: is assignment atomic/thread safe?
    ... void foo() ... with one thread running foo() while another runs bar(). ... and thus no guarantees are made about _when_ any given piece of code will execute. ...
    (comp.lang.java.programmer)