LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-06-2004, 03:03 AM   #1
texasnoob
LQ Newbie
 
Registered: Jun 2004
Location: Lubbock TX
Distribution: Slackware 9.1
Posts: 14

Rep: Reputation: 0
the noob is back with another stupid linux question


GRRRRRRRRR! I have to make my thread again! Stupid forum rules! (Wouldn't let me post a URL, clicked back, message is gone...).

Anyway...

OK. I can't figure out how to make a file work. It's a simple executable file that I downloaded to install BOINC on my linux box (google it if you don't know, I tried to make it easy and post the URL but due to forum rules this is impossible for me at the moment). I click on it and nothing happens. I used ls -l to figure out its permissions, and I think it has the right ones (r,w,x). What's the deal?

Thanks.
 
Old 09-06-2004, 03:07 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
executing binary files goes basically like this (I assume you have cd'ed into the dir the file is in)

chmod u+x binaryfile.bin
./binaryfile.bin

if binaryfile.bin is the file you're trying to run. instead of "./binaryfile.bin" you can use "sh binarifyle.bin" too I guess....
 
Old 09-06-2004, 03:21 AM   #3
texasnoob
LQ Newbie
 
Registered: Jun 2004
Location: Lubbock TX
Distribution: Slackware 9.1
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by b0uncer
executing binary files goes basically like this (I assume you have cd'ed into the dir the file is in)

chmod u+x binaryfile.bin
./binaryfile.bin

if binaryfile.bin is the file you're trying to run. instead of "./binaryfile.bin" you can use "sh binarifyle.bin" too I guess....
...eh???

I don't know that it's a binary file - the actual name of the file is boinc_4.05_i686-pc-linux-gnu. I can't see that it has an extension...
 
Old 09-06-2004, 04:43 AM   #4
Inexactitude
Member
 
Registered: Oct 2003
Distribution: Slackware 12.2, Ubuntu 9.04
Posts: 477

Rep: Reputation: 30
Well, you're best bet is just trying sh boinc_4.05_i686-pc-linux-gnu and seeing what happens. If it's an executable, that should do the trick. By the way, a binary file and executable are the same thing .
 
Old 09-06-2004, 04:51 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
file boinc_4.05_i686-pc-linux-gnu
The file command will tell you about the type of that file
 
Old 09-06-2004, 02:02 PM   #6
texasnoob
LQ Newbie
 
Registered: Jun 2004
Location: Lubbock TX
Distribution: Slackware 9.1
Posts: 14

Original Poster
Rep: Reputation: 0
Now this is more like it. You have to remember, my signature is no exaggeration.
 
Old 09-06-2004, 02:09 PM   #7
texasnoob
LQ Newbie
 
Registered: Jun 2004
Location: Lubbock TX
Distribution: Slackware 9.1
Posts: 14

Original Poster
Rep: Reputation: 0
I tried the sh command, and it says "cannot execute binary file". What is the sh command, anyway?

The file command came up with this: "ELF 32-bit LSB executable, Intel 80386, version 1 (SYSU), dynamically linked (uses shared libs), not stripped".
 
Old 09-06-2004, 04:24 PM   #8
texasnoob
LQ Newbie
 
Registered: Jun 2004
Location: Lubbock TX
Distribution: Slackware 9.1
Posts: 14

Original Poster
Rep: Reputation: 0
*bump*

Anybody?
 
Old 09-06-2004, 04:32 PM   #9
RHLinuxGUY
Member
 
Registered: Oct 2003
Distribution: Ubuntu 7.04
Posts: 889
Blog Entries: 1

Rep: Reputation: 30
If u go into a file manager, and right click and open, usualy it figures out what command to do, to start it up. I've been doing that lately other then command line, cuz it seems to be the same, just easier. O ya, if u want to figure out what it is, go into a file manager, and right click on the file, and go to properties, it shoul say what the file exstension is, cant miss it.
 
Old 09-06-2004, 05:19 PM   #10
proudclod
Member
 
Registered: May 2004
Distribution: Fedora Core 2
Posts: 381

Rep: Reputation: 30
sh invokes the shell program, which basically just runs the program you want.

try doing chmod 755 file, then sh file
 
Old 09-07-2004, 01:58 AM   #11
texasnoob
LQ Newbie
 
Registered: Jun 2004
Location: Lubbock TX
Distribution: Slackware 9.1
Posts: 14

Original Poster
Rep: Reputation: 0
OK. I right click file, hit open. It says, couldn't find the program [filename].

I open the shell, type sh [filename], it says cannot execute binary file. Is there something wrong with the file?
 
Old 09-07-2004, 02:26 AM   #12
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
The file command came up with this: "ELF 32-bit LSB executable, Intel 80386, version 1 (SYSU), dynamically linked (uses shared libs), not stripped".
Try ./boinc_4.05_i686-pc-linux-gnu
 
Old 09-07-2004, 02:57 AM   #13
texasnoob
LQ Newbie
 
Registered: Jun 2004
Location: Lubbock TX
Distribution: Slackware 9.1
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by bathory
Try ./boinc_4.05_i686-pc-linux-gnu
This worked! Thanks very much.

(What is that command, and why did it work when the others didn't?)
 
Old 09-07-2004, 03:32 AM   #14
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Glad to see it worked. "./" is the "path" to the command you want to run, so when you enter a directory that is not in your PATH you must precede the command with the "./". You can avoid this if you add the "." (the dot) to your PATH which is not recommended.
Regards
 
Old 05-28-2007, 07:46 AM   #15
TC Jester
LQ Newbie
 
Registered: Apr 2005
Distribution: none as yet
Posts: 5

Rep: Reputation: 0
I hope I upset no-one by upping this thread, but it seemed the best thing to do rather than annoy and make a new thread.

I mostly still in love with Windows, but I do want to make a go of using Ubuntu 7.04
I´ve downloaded boinc_5.8.16_i686-pc-linux-gnu.sh and I really just do not know how to install this. I only know how to do this the windows way. The above poster called himself a noob, but to me appears far advanced to what I can do on linux. I´m hoping that if I learn how to do this, I can install other programs. Can anyone offer advice to a damn fool?
 
  


Reply



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
Variable substitution (stupid noob) question in tcsh King of Men Linux - Newbie 4 12-04-2005 09:12 AM
Stupid Noob Question #47 purplemooseman Slackware 2 08-14-2004 01:11 AM
stupid noob driver question wilcox69 Linux - Newbie 2 05-27-2004 11:54 AM
Stupid Question - what is Linux based on? cmf5150 Linux - Newbie 11 03-11-2004 05:09 PM
Linux Scripting stupid question linuxsucks Programming 1 08-05-2003 11:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:18 PM.

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
Open Source Consulting | Domain Registration