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 01-27-2006, 05:29 AM   #1
belmonthengoed
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Rep: Reputation: 0
Binary not executing


Hi there
A newbie first post ever on the internet.Running suse 10, having installed and got firefox up a nd running and feeling quite pleased with myself i set about installing spamassin,downloaded the tar ball and extracted via perl after about two hours, yea i thought cracked it i am now a linux usr. went into the /usr/bin via root found the executable and tried to run it no joy. and then out of curerieosty tried some more of the binaries there no joy. I am sure that there is a fundamental thing that i am doing wrong I have tried the forum and different searches for a answer . i am not sure if i am in the right forum for this post
 
Old 01-31-2006, 07:43 AM   #2
vangelis
Member
 
Registered: Nov 2004
Location: Hellas
Distribution: Zenwalk 6.4
Posts: 337
Blog Entries: 4

Rep: Reputation: 30
For binaries located in /usr/bin there is no need executing them being logged as root, only the executables in /usr/sbin can be executed by root.
To execute a binary there are many ways.
You can execute it from the full path like :
$:/usr/bin/whereis
you can also execute it from the folder itself like :
/usr/bin/$: ./whereis (you just add './' before the filename, that means it's a file located in the directory you are

But for files located in /usr/bin you don't need to do any of the above.
In any terminal and in any path only by typing the executable it will run.
 
Old 01-31-2006, 09:31 AM   #3
pokemaster
Member
 
Registered: Apr 2005
Location: Massachusetts, USA
Distribution: debian,ubuntu,slackware
Posts: 110

Rep: Reputation: 17
I also wonder... did you log into the gui as root and try double clicking it? A greatmany apps are terminal based and won't give you any GUI output.
 
Old 01-31-2006, 10:15 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
When you say, "no joy," you don't tell us what happened?

Here's some things to know:

(1) Even an executable program must have the --x permission-bit set, in order for you to be able to execute it. If you enter the command ls -l filename, you will see a series of letters on the left hand side that look something like this: -rw-r--r--. The last nine characters are "three groups of three," the letters "rwx" for "read, write, execute." The first group is for "you, the owner." The next three is for "anyone in your group." The third is for "anyone." In the example shown, no one can execute this file as a program, because no one has been given execute permission. Use the chmod command (see man chmod) to give at least yourself execute-permission.

(1a) Linux loves the message: permission denied. Yes, it is rather designed to be cryptic.

(2) By design, Linux does not assume that a command that you type refers to "an executable file in your current directory," as MS-Windows or MS-DOS does. If you want to execute a file in your current directory, precede the filename with "./" as in ./myprogram. { Unix/Linux directories are separated by a forward slash, not a backslash, and "." is a shorthand for "the current directory." }

(3) Unix has a $PATH variable which allows it to search in specified directories for a file corresponding to the command that you have entered. Try echo $PATH. See: man path, man export, man set.
 
Old 02-01-2006, 06:13 AM   #5
belmonthengoed
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Binary not executing

thanks for the replies very grateful for the advise i have been trying years to get a grip on linux now semi retired I have a bit more time, but still very frustrated, tried the ./telnet it just sat there doing nothing just changed dir i suppose., tried ./spamassassin which is the program which iwas trying to run in the first place, then command just sat there looking black at me.I had opened a terminal in the usr/bin the icons are mostly little gears. i have a icon for for the spamassassin also a file with a pl on tried clicking that and it open the script, so that was when i tried the other icons just going through them to see what happens they just do nothing ,so i assumed that i was doing somthing wrong somwhere and some how, must admit i havnt tried the chmod at the moment. basicley what iwant to do is to install a program and the run it I thought i had found the secret when i downloaded fire fox and got it running, so i tried the spamassassin as a tarball extracted and compiled ok but unable to run it, hence the post and a lot of frustration to boot

Last edited by belmonthengoed; 02-01-2006 at 06:32 AM.
 
  


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
Firefox binary not executing? Crotalid Linux - Software 7 01-22-2006 09:34 PM
executing binary issues +0+4|_ n00b Linux - Newbie 1 03-04-2005 01:55 PM
executing binary problems. cheater1034 Linux - Software 2 09-18-2004 11:08 AM
Difficulty executing a binary file Judland Linux - Software 2 10-03-2003 11:03 PM

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

All times are GMT -5. The time now is 09:16 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
Open Source Consulting | Domain Registration