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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-20-2002, 06:18 AM
|
#1
|
|
LQ Newbie
Registered: Dec 2002
Posts: 5
Rep:
|
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
|
|
|
|
12-20-2002, 06:32 AM
|
#2
|
|
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316
Rep:
|
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.
|
|
|
|
12-20-2002, 06:52 AM
|
#3
|
|
LQ Newbie
Registered: Dec 2002
Posts: 5
Original Poster
Rep:
|
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
|
|
|
|
12-20-2002, 07:20 AM
|
#4
|
|
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316
Rep:
|
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?
|
|
|
|
12-20-2002, 07:39 AM
|
#5
|
|
LQ Newbie
Registered: Dec 2002
Posts: 5
Original Poster
Rep:
|
When using the bash shell, I get this message:
“bash: “/usr/local/nfis/bin/nfis: No such file or directory”
|
|
|
|
12-20-2002, 07:47 AM
|
#6
|
|
LQ Newbie
Registered: Dec 2002
Posts: 5
Original Poster
Rep:
|
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)
|
|
|
|
12-20-2002, 09:05 AM
|
#7
|
|
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316
Rep:
|
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.
|
|
|
|
12-20-2002, 09:17 AM
|
#8
|
|
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316
Rep:
|
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
|
|
|
|
12-20-2002, 10:32 AM
|
#9
|
|
LQ Newbie
Registered: Dec 2002
Posts: 5
Original Poster
Rep:
|
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.
|
|
|
|
11-25-2003, 11:00 PM
|
#10
|
|
LQ Newbie
Registered: Nov 2003
Posts: 1
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:25 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|