Find the answer to your Linux question:
Results 1 to 8 of 8
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Question File or directory not found

    Could anyone help me with this error is happening? Sorry if some do not write because I'm from Brazil.

    [Cleiton Cleiton Tibia]$ ./Tibia
    bash: ./Tibia: /lib/ bad ELF interpreter: File or directory not found

    I copied this into the folder / lib but nothing worked.

  2. #2
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Either at home or at work or down the pub
    Not sure that it's looking good I'm afraid and here's why although, it might be as simple as having installed the wrong version of the software you are trying to run.

    It would be helpful to know what distribution you are using and what you are running when you get the error.

    Oh. Welcome to Linux Forums
    Should you be sitting wondering,
    Which Batman is the best,
    There's only one true answer my friend,
    It's Adam Bloody West!

    The Fifth Continent

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    This sometimes happens when you are trying to link a 32-bit executable to a 64-bit library, or vice-versa.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  4. $spacer_open
  5. #4
    What does "ls -l /lib/" return?
    If the file is there what does "file -L /lib/" return?

  6. #5


  7. #6
    Just Joined!
    Join Date
    Jan 2011
    Fairfax, Virginia, USA

    Hi, I think I can shed some light on what your seeing.

    Linux natively supports a binary format called ELF. It used to; and depending on your distribution still might, support an older format called a.out.

    When you compile and link a binary (like ls(1) for instance), the default behavor is to link dynamically. You can see how something is linked with the file(1) command:
    [brian@bmicek ~]$ file /bin/ls
    /bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
    There is additional code in dynamically linked ELFs that invoke some code in an agreed location called which is the Unix dynamic linker. The error message you showed:
    bash: ./Tibia: /lib/ bad ELF interpreter: File or directory not found
    is a message from the Unix dynamic linker. Specifically its saying is bad.

  8. #7
    How do I fix this so?

  9. #8
    Just Joined!
    Join Date
    Jan 2011
    Fairfax, Virginia, USA

    I dont know how to fix it

    It sounds like your system works correctly except for this one ELF?

    If that's true, it sounds like you took an ELF from some other system and you want it to run on a system that has in a different location?

    If all that is true, the only way I can fathom to fix it is by recompiling the code. Your problem is an odd problem because what your seeing shouldn't happen because all this stuff is standardized.

    Am I correct on my above guesses? Can you tell me about the code your trying to run?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts