LinuxQuestions.org
Visit the LQ Articles and Editorials 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 10-21-2004, 08:09 PM   #1
dcarlis
LQ Newbie
 
Registered: Oct 2004
Posts: 1

Rep: Reputation: 0
command not found error message


Hi,

I have an executable program that I'm trying to run, but I keep getting a message stating, "command not found." The permissions on the program are -rwxrwxr-x and it still doesn't work. I have no idea of what else to do to run the program.

DCARLIS
 
Old 10-21-2004, 08:21 PM   #2
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
What is the exact error message, the name of the program, and the command line you're using?

if you're running 'example' and get:
bash: example: command not found

then the shell doesn't know where the program is because it's not in a directory mentioned in $PATH - use a specific pathname
(e.g if example is in the current dir, try ./example instead)
 
Old 10-21-2004, 08:22 PM   #3
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
What is the name of the program? Is it possibly a script referring to some other program that is missing?

Running program "./foo" with command
Code:
strace -e trace=file ./foo
gives you a listing of files it tries to access when it is ran.
 
Old 10-21-2004, 08:30 PM   #4
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 45
Type in the full path to the program as in
/bin/ls
or if you are in the directory it is in put a . and a / in front of it
./program

To find your PATH
echo $PATH
 
  


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
command not found error lordshipmayhem Linux - Newbie 4 06-28-2005 10:15 PM
sed error message: extra characters after the command. nano_mag Linux - General 3 05-15-2005 02:00 AM
c++ command not found error... ? Cheka Linux - Newbie 2 01-29-2005 04:43 PM
Error Message gcc: Command not found Schmurff Fedora 2 09-27-2004 01:23 PM
error message: Couldn't initialize SDL: Found no sufficiently capable X11 visuals JimBass Linux - Software 2 03-05-2004 08:50 AM


All times are GMT -5. The time now is 10:58 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration