Find the answer to your Linux question:
Results 1 to 6 of 6
on many programs I try to run from an extracted tar.gz file I get this message saying that it cannot run a binary code. What is going on? Here is ...
  1. #1
    Linux Newbie dalinux_n00bie's Avatar
    Join Date
    Nov 2006
    Posts
    226

    Can't Run Binary code?

    on many programs I try to run from an extracted tar.gz file I get this message saying that it cannot run a binary code. What is going on?

    Here is an example of what I try todo:

    kirk@linux-n4y1:~> cd /home/kirk/downloads/TerminusDemoLinuxFull
    kirk@linux-n4y1:~/downloads/TerminusDemoLinuxFull> sh terminus
    terminus: terminus: cannot execute binary file
    kirk@linux-n4y1:~/downloads/TerminusDemoLinuxFull>
    "Do or do not...there is no try" -Yoda
    History is a set of lies agreed upon by the winners.
    Linux is user friendly, not idiot friendly.
    Linux User 437442

  2. #2
    Linux Engineer Zelmo's Avatar
    Join Date
    Jan 2006
    Location
    Riverton, UT, USA
    Posts
    1,001
    Check that it's executable.
    Do:
    Code:
    ls -l terminus
    If it doesn't show any executable flags, do
    Code:
    chmod +x terminus
    Stand up and be counted as a Linux user!

  3. #3
    Linux Newbie dalinux_n00bie's Avatar
    Join Date
    Nov 2006
    Posts
    226
    This is what happens:


    kirk@linux-n4y1:~/downloads/TerminusDemoLinuxFull> ls -l terminus
    -rwxr-xr-x 1 kirk users 1759216 2000-06-14 06:39 terminus
    kirk@linux-n4y1:~/downloads/TerminusDemoLinuxFull> chmod +x terminus
    kirk@linux-n4y1:~/downloads/TerminusDemoLinuxFull> sh terminus
    terminus: terminus: cannot execute binary file
    kirk@linux-n4y1:~/downloads/TerminusDemoLinuxFull>

    do I have to be in root?
    "Do or do not...there is no try" -Yoda
    History is a set of lies agreed upon by the winners.
    Linux is user friendly, not idiot friendly.
    Linux User 437442

  4. #4
    Linux Engineer Zelmo's Avatar
    Join Date
    Jan 2006
    Location
    Riverton, UT, USA
    Posts
    1,001
    No, you shouldn't need to be root. Everyone has permission to execute the program.

    From Googling a bit, it looks like the "cannot execute binary file" message comes when you're trying to run a program that was compiled for a different architecture. So if you're running an x86 Linux kernel and you downloaded the x86-64 version of the program (or the PPC, Alpha, Sparc, ARM, or other version), it won't run.
    Stand up and be counted as a Linux user!

  5. #5
    Linux Newbie dalinux_n00bie's Avatar
    Join Date
    Nov 2006
    Posts
    226
    k...how would i check to see if i have the right version?
    "Do or do not...there is no try" -Yoda
    History is a set of lies agreed upon by the winners.
    Linux is user friendly, not idiot friendly.
    Linux User 437442

  6. #6
    Linux Newbie dalinux_n00bie's Avatar
    Join Date
    Nov 2006
    Posts
    226
    I'm really confused because on most web sites that have a tar.gz file it dosn't mention the exact Linux flavors that it can run one. Help anyone?
    "Do or do not...there is no try" -Yoda
    History is a set of lies agreed upon by the winners.
    Linux is user friendly, not idiot friendly.
    Linux User 437442

Posting Permissions

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