LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-18-2005, 11:49 PM   #1
kwid21
Member
 
Registered: Aug 2005
Posts: 44

Rep: Reputation: 15
executing a .bin in suse 9.2


I am trying to execute a .bin file in suse 9.2 but when I try to execute it it gives me an error saying cannot execute binary file. So far I have been unsuccessful in installing any additional programs at all. I have downloaded 6 different games and followed the install instructions provided but they either don't install, or give lots of errors.

So far my linux experience has been that it is simply too difficult to install anything for it to be worth it. I have tried several distros to no avail. It's always the same thing with installing programs in every version. It is the most frustrating thing I have ever done. I don't think I have screamed at anything more often than I have this.

There must be something I am doing wrong since I know that people can and do install additional programs. Please help.
 
Old 08-19-2005, 12:06 AM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
Often, you need to make the bin executable. I will assume you downloaded the .bin file to /home/name, and I'll call the file download.bin. Make the appropriate changes to match your actual username and location.

Code:
name@hostname:/home/name$chmod u+x download.bin
name@hostname:/home/name$./download.bin
If you did not download the file to your home directory, then you will need to be root to do those commands most likely. Depending on what the .bin tfile tries to do, you may need to be root in any case. If you need to be root, it will give you an error, and usually say something like "only root can do this", or something along those lines.

Peace,
JimBass
 
Old 08-19-2005, 12:17 AM   #3
kwid21
Member
 
Registered: Aug 2005
Posts: 44

Original Poster
Rep: Reputation: 15
Still says that it cannot execute the bin file

Last edited by kwid21; 08-19-2005 at 12:18 AM.
 
Old 08-19-2005, 12:22 AM   #4
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
Did you try it as root, and also, what is the .bin file? Are you sure it is meant to be executed? Maybe was it part of a larger package or something like that? I have seen .bin downloads a few times, but usually linux downloads are .tar.gz, tar.bz2, or any of the distr-specific packages, like .deb, .rpm etc.

Also, we can probably help much better if you copy and paste the entire input/output from the command that is failing.

Peace,
JimBass
 
Old 08-19-2005, 12:32 AM   #5
kwid21
Member
 
Registered: Aug 2005
Posts: 44

Original Poster
Rep: Reputation: 15
In the install instructions it says to execute the bin so I think I am supposed to execute it.
here's what it says when I try to execute it:
robby@linux:~> cd '/home/robby/Downloaded files/el_101'
robby@linux:~/Downloaded files/el_101> sh el.x86.linux.bin
el.x86.linux.bin: el.x86.linux.bin: cannot execute binary file
robby@linux:~/Downloaded files/el_101>

Says the same thing when I try to execute it under root as well

Last edited by kwid21; 08-19-2005 at 12:34 AM.
 
Old 08-19-2005, 12:44 AM   #6
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
If you did what I said in the first post, and made the .bin file executable, then you don't tell it sh el.x86.linux.bin, you should just do ./el.x86.linux.bin

Peace,
JimBass
 
Old 08-19-2005, 12:49 AM   #7
kwid21
Member
 
Registered: Aug 2005
Posts: 44

Original Poster
Rep: Reputation: 15
Here's what it says:
robby@linux:~/Downloaded files/el_101> ./elx86.linux.bin
bash: ./elx86.linux.bin: No such file or directory
robby@linux:~/Downloaded files/el_101
 
Old 08-19-2005, 12:55 AM   #8
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
You have given 2 different names for the same file. FIrst you called it el.x86.linux.bin then you tried to run it with the name elx86.linux.bin. That period could be the problem. If it is the only file in the directory that starts with el, then type ./el and then hit tab, it should automatically fill in the rest of the name for you. You can also do ls in the directory, and see the names of all non-hidden files, and copy the name of the file from there.

Peace,
JimBass
 
Old 08-19-2005, 01:01 AM   #9
kwid21
Member
 
Registered: Aug 2005
Posts: 44

Original Poster
Rep: Reputation: 15
That got it! Useful to know that I can press tab to copy a filename. That I didn't know, nor have I seen it mentioned elsewhere. Thanks man
 
Old 08-19-2005, 01:05 AM   #10
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
Right on! Tab doesn't copy though, it just fills in the blank. If you have 10 files that all start with abc, and you type abc and hit tab, it doesn't know what you want. It will fill in to where the names are different, then you have to give it the next character, then try tab, and if your choice is clear, it fills in the rest.

Peace,
JimBass
 
  


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
suse 9.2 - /usr/bin/[ Executable - what is this? nathanv117 Suse/Novell 3 01-23-2005 10:20 AM
boot file (bin) suse 9.0 needed tequila00shots Linux - General 0 02-12-2004 04:56 PM
executing .bin files (mandrake9.2)? TiRaK Linux - Newbie 1 01-10-2004 08:58 AM
Executing bin files Squiddy Slackware 2 11-07-2003 03:11 AM
Executing .bin files klmn1 Linux - Software 2 06-06-2003 03:04 AM


All times are GMT -5. The time now is 06:14 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration