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! |
Yep, downloading the program doesn't mean installing it.
|
I know that! But all the instructions told me was to extract the files to the home directory and "run it". Real specific huh? :D
|
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 |
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.
|
Hmmm, something I'll have to try...
|
What
file filename reports |
am i the only one to notice that he's running "snes9x" and not "./snes9x" ??
|
Quote:
/path_where_it's_installed/snes9x would be better. If you're in a directory when your program is installed, you can use ./snes9x |
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. :) |
Quote:
./snes9x |
Where would the file be to add the directory to my PATH?
|
Quote:
Depends on what shell you are using... $HOME/.bashrc would be one point of interest... Cheers, Tink |
Quote:
/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... |
Naw, I don't log in as root all the time.
:D |
All times are GMT -5. The time now is 09:14 PM. |