LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-12-2003, 12:22 AM   #1
guywithredhat
LQ Newbie
 
Registered: Mar 2003
Location: Madison Wisconsin
Distribution: Red Hat 8
Posts: 1

Rep: Reputation: 0
Binary Files


Im new to linux and was wondering what all of the binary files are and how they are run. They say they are executable but will not run when i click on them. One example is: usr/games/fortune
 
Old 03-12-2003, 12:39 AM   #2
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
binary's run...just maybe not as expected.

fortune shows random quotes...if you're clicking on it, I doubt you'll see much happening (fortune ONLY shows quotes - not opens new windows with quotes)

Try to open xterm, and then run fortune (ie. '/usr/games/fortune'). This should give you a better response.
Remember, many binary programs are not designed to run in a seperate X window (gtk, etc.). So, you need to start/use them from an xterm.
 
Old 03-12-2003, 12:44 AM   #3
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Well, not all executables are binaries, such as shell scripts. And some binaries are executable only by root unless you change the permissions. I don't know - I usually run programs from the command line or clicking on menus I've written, like for blackbox. When you say 'click on', do you mean in a KDE/Gnome file manager, or panel menu or what? Those should be on your path and executable by any user, though those are the things to check first.

/usr/games? That's an odd directory. usually, executables are in /bin, /sbin, /usr/local/bin, /opt/kde/bin, etc.

Anyway - check the path, check the permissions. If that doesn't clear things up, check back with what desktop environment and what source (menu/file manager/etc) you're using. That's all I can think of.

-edit- Man, I gotta learn how to type. And, um, think faster. But, yeah, good points - a lot of apps don't do much or seem to do much and some are console, some are box, some are GUI windows, etc. *g*

Last edited by slakmagik; 03-12-2003 at 12:46 AM.
 
Old 03-12-2003, 12:45 AM   #4
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Binaries are installation files. The method of installing is generally to put the binary in a suitable place eg /home/user and unpack and READ the read me that comes with the binary. Most have a general 3 stage process. The binary will generally tell you where to place the binary. I usually put mine in /usr/src. The steps are;
1. go into a console as root
2.cd to the unpacked binary directory
3.use the command "./configure"
4.use the command "make"
5.use the command "make install"
 
Old 03-12-2003, 12:49 AM   #5
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Huh? Those are tarballs containing source to make binaries, aren't they - not binaries, themselves? He's talking about stuff that I assume was dumped in by his installtion process which, with Red Hat, is going to be from .rpms.
 
Old 03-12-2003, 07:14 PM   #6
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
Quote:
/usr/games? That's an odd directory
actually this is a default, along with /usr/local/games - unix geeks needed their games.


As stated earlier, I think the problem is that fortune only sends messages to standard output (which when opened by stuff as file managers - ie. "click"- is redirected to /dev/null)
 
Old 03-17-2003, 10:04 PM   #7
pelgrim
LQ Newbie
 
Registered: Mar 2003
Distribution: suse
Posts: 9

Rep: Reputation: 0
Quote:
Originally posted by TigerOC
Binaries are installation files. The method of installing is generally to put the binary in a suitable place eg /home/user and unpack and READ the read me that comes with the binary. Most have a general 3 stage process. The binary will generally tell you where to place the binary. I usually put mine in /usr/src. The steps are;
1. go into a console as root
2.cd to the unpacked binary directory
3.use the command "./configure"
4.use the command "make"
5.use the command "make install"

Are those real commands?
If i type them it will give a msg that those aren't commands
I want to compile "install.sh" .
 
Old 03-18-2003, 06:28 PM   #8
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
Quote:
Originally posted by pelgrim
Are those real commands?
If i type them it will give a msg that those aren't commands
I want to compile "install.sh" .
It helps to read the documentation, if there is any. Usually installation help can be found in a file such as README or INSTALL. I recommend you read that, so you know exactly what's going on. If there is no documentation, go and open install.sh in a editor, and see what it does. From the sound of it, maybe running './install.sh' will be enough. But be warned: there is no 'standard' for what;s supposed to happen...so read the documentation and/or look at what the script actually does. Also, you'll probably need to have root permissions.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
binary files in C sagar13 Programming 10 10-02-2004 01:29 PM
Binary Files? Teralon 9 Linux - General 2 02-10-2004 10:36 PM
Binary files sodaforce Linux - Software 1 09-07-2003 05:31 PM
Using binary files KDE4me Linux - Newbie 1 04-24-2003 08:00 AM
binary files walterw Programming 7 01-27-2003 08:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:12 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