Linux - SoftwareThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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)
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”
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.