LinuxQuestions.org
Visit Jeremy's Blog.
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 12-20-2002, 06:18 AM   #1
nfis
LQ Newbie
 
Registered: Dec 2002
Posts: 5

Rep: Reputation: 0
Question Command not found


I have a program that is compiled using Slackware Linux version 2.0.29.
To take benefit of evolution in hardware, filesystem etc., I have purchased Slackware Linux 8.1.
But when I try to run the program (using the full path and with the execute property set), the Linux responses with the message “Command not found”.
The question is: Is this because of the difference in the Slackware Linux distribution or is this happening because I do something wrong?

Someone who knows?

Best regards,
Johan L. Aase
 
Old 12-20-2002, 06:32 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
It shouldn't be because it's a different version of slackware. Does the program you run try to start any other programs which could cause it to report the error "Command Not Found"?
What does the exact error look like? Usually if you type the full path then you should get something like:
bash: /bin/foo: No such file or directory

The command not found you would only get if you don't add the full path and the command can't be found in your path either.
 
Old 12-20-2002, 06:52 AM   #3
nfis
LQ Newbie
 
Registered: Dec 2002
Posts: 5

Original Poster
Rep: Reputation: 0
The program is a standalone executable and is not trying to start any other programs.
The message reported back after I try to run the program is:
“/usr/local/nfis/bin/nfis: Command not found”

(Shell in us is tcsh)
As additional information I can mention that I copied a program found in the Slackware Linux 8.1 distribution to the same location as the nfis file I’m trying to run, and that worked like it should (I even renamed it to another name to be sure it didn’t run the one in the path)

Johan
 
Old 12-20-2002, 07:20 AM   #4
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
What does 'file /usr/local/nfis/bin/nfis' tell you? I have no experience using tcsh. Do you get similar results if you try another shell?
 
Old 12-20-2002, 07:39 AM   #5
nfis
LQ Newbie
 
Registered: Dec 2002
Posts: 5

Original Poster
Rep: Reputation: 0
When using the bash shell, I get this message:
“bash: “/usr/local/nfis/bin/nfis: No such file or directory”
 
Old 12-20-2002, 07:47 AM   #6
nfis
LQ Newbie
 
Registered: Dec 2002
Posts: 5

Original Poster
Rep: Reputation: 0
Sorry I hit the enter button a little bit early :-)
The reply should be:

When using the bash shell, I get this message:
“bash: “/usr/local/nfis/bin/nfis: No such file or directory”

Running the “file /usr/local/nfis/bin/nfis” command, the system replies:
“/usr/local/nfis/bin/nfis: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dunamically linked (uses shard libs), not stripped”

(Still running the bash shell)
 
Old 12-20-2002, 09:05 AM   #7
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Ok now that looks really confusing. Bash can't find it but file can.
What about if you do:
cd /usr/local/nfis/bin/ && ./nfis

Sorry but I'm out of ideas, not very creative on a friday afternoon.
 
Old 12-20-2002, 09:17 AM   #8
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Maybe one of these will help get you more info:

strace -o trace1.out /usr/local/nfis/bin/nfis
strace -o trace2.out bash -c /usr/local/nfis/bin/nfis
 
Old 12-20-2002, 10:32 AM   #9
nfis
LQ Newbie
 
Registered: Dec 2002
Posts: 5

Original Poster
Rep: Reputation: 0
First of all: Thanks for your effort!

The command "cd -usr-local-nfis-bin && ./nfis" gave the same result as above (No such file or directory)

The "strace -o trace1.out /usr/local/nfis/bin/nfis" gave the result:
execve("/usr/local/nfis/bin/nfis", ["/usr/local/nfis/bin/nfis"], [/* 36 vars */]) = 0

The other strace call gave a lot more information (about 6 KB), which I will try to interpret.

Thanks again.
 
Old 11-25-2003, 11:00 PM   #10
supae
LQ Newbie
 
Registered: Nov 2003
Posts: 1

Rep: Reputation: 0
Command not found

if your first line is #!/bin/tcsh and there is no 'tcsh' in your /bin, then this problem occurs. This sounds trivial but sometimes small things cause big problems.
 
  


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 murshed Linux - Newbie 8 11-22-2007 04:51 AM
bash: <command name> command not found smash Programming 5 03-13-2006 08:48 AM
command not found ginda Linux - General 3 07-16-2005 04:15 PM
Command Not Found But I See It!! dmorrell Linux - Software 8 01-22-2005 01:12 PM
command not found jkp Linux - Newbie 3 01-21-2003 02:26 PM

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

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