LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-22-2002, 02:01 AM   #1
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Rep: Reputation: 30
Question Cannot execute binary file


I've ran into this problem twice now with two different programs. I've downloaded three different SNES emulators:

SNEmul, ZSNES, and snes9x

SNEmul and snes9x give the same error after typing what they said to type:
[root@localhost] # SNEmul
"bash: SNEmul: Command not found"

[root@localhost] # snes9x
"bash: snes9x: Command not found"

Then I remember reading somewhere that you need an "sh" before the command...then I got "Cannot execute binary file"

The only one that has worked is ZSNES, which I had to compile. Do I need to compile these as well? If so why didn't the instructions even bother to mention such a minor detail? If not then why won't it work?

(PS - yes I know that ZSNES is a good emulator, but it doesn't seem to support my USB Gamepad Pro. So Either I need to find out how to map my joystick to "/dev/input/js0", or get another to work)



Just one more added comment:

Thank you so much! For all of you that have helped! Because without you, I would not have kept my interest in Linux. This is the third time trying Linux, and I think it may have finally stuck with me. Thank you, so much guys! For all your help!
 
Old 09-22-2002, 02:08 AM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Yep, downloading the program doesn't mean installing it.
 
Old 09-22-2002, 02:11 AM   #3
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
I know that! But all the instructions told me was to extract the files to the home directory and "run it". Real specific huh?
 
Old 09-22-2002, 03:08 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Sometimes a how to expects some knowledge and common sense, this one expects you to have a little more than that. Others will bore the average user. I guess they chose the other side, confuse the average user.

Cool
 
Old 09-23-2002, 08:51 PM   #5
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
It could be something as simple as PATHing. When the instructions are the short "extract and run" type then you probably need to add that diretory to your PATH or specify the full path to the binary. Sometimes the permissions aren't right for the binaries. Check to see if they are indeed executable.
 
Old 09-23-2002, 11:11 PM   #6
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
Hmmm, something I'll have to try...
 
Old 09-23-2002, 11:58 PM   #7
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
What
file filename
reports
 
Old 09-24-2002, 04:44 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
am i the only one to notice that he's running "snes9x" and not "./snes9x" ??
 
Old 09-24-2002, 06:45 AM   #9
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,569

Rep: Reputation: 171Reputation: 171
Quote:
Originally posted by acid_kewpie
am i the only one to notice that he's running "snes9x" and not "./snes9x" ??
I suppose that
/path_where_it's_installed/snes9x
would be better. If you're in a directory when your program is installed, you can use ./snes9x
 
Old 09-24-2002, 10:12 AM   #10
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
So I actually have to type in the path where the file is plus the filename such like:

/home/Bigun/Downloads/snes9x-linuxppc/snes9x

I didn't know this, I only thought you had to be IN the path. Oh well, that's what I get for learning DOS first.
 
Old 09-24-2002, 12:06 PM   #11
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,569

Rep: Reputation: 171Reputation: 171
Quote:
Originally posted by Bigun

/home/Bigun/Downloads/snes9x-linuxppc/snes9x
Right. But when you're in /home/Bigun/Downloads/snes9x-linuxppc/ it's just
./snes9x
 
Old 09-24-2002, 11:59 PM   #12
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
Where would the file be to add the directory to my PATH?
 
Old 09-25-2002, 01:06 AM   #13
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally posted by Bigun
Where would the file be to add the directory to my PATH?
Gidday!

Depends on what shell you are using...
$HOME/.bashrc would be one point of interest...

Cheers,
Tink

Last edited by Tinkster; 09-25-2002 at 01:09 AM.
 
Old 09-25-2002, 01:09 AM   #14
RijilV
Member
 
Registered: Sep 2002
Location: somewhere
Distribution: gentoo
Posts: 123

Rep: Reputation: 15
Quote:
Originally posted by Bigun
Where would the file be to add the directory to my PATH?
in general

/etc/profile

I'm sure there is some distribution specific file in most major distributions that they want you to use.

however, I must ask, is it really all that big of a deal to type in ./<path-to-program>/<program-name> ? Most shells have tab completion..

or you could even install the program to /usr/local/bin/

I'm sure you're using a popular window manager like Gnome or KDE, you could easily add it to whatever menu / desktop / panel / start-button the window manger of your choice is using....

btw, don't run that as root....and don't tell me you always login as root, just go make a user and log back on as that then post your reply...
 
Old 09-25-2002, 01:28 AM   #15
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
Naw, I don't log in as root all the time.

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot execute binary file babaliciouse Linux - Software 2 10-21-2004 12:50 PM
Cannot execute binary file pbagda Linux - General 4 01-19-2004 02:13 AM
Cannot execute binary file??? Wimpie22 Linux - General 3 01-11-2004 05:38 PM
Cannot execute binary file Nooodle007 Linux - Software 2 06-25-2003 02:25 PM
cannot execute binary file.... ttaylor Linux - General 4 10-02-2001 02:37 AM


All times are GMT -5. The time now is 12:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration