LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   I can see the file, but I can't run it .... (https://www.linuxquestions.org/questions/linux-general-1/i-can-see-the-file-but-i-cant-run-it-39877/)

nutecinc 12-31-2002 10:26 AM

I can see the file, but I can't run it ....
 
I am using RH 7.2 now. When I tried to run a application file iptraf from CD-ROM, when I do the ls -al command, it show me the file:
-r-xr-xr-x 1 root root 153944 May28 1999 iptraf

But when I tried to run it using ./iptraf, it gave me the followng message:
bash:./iptraf: No such file or directory

I am log in as a root and I am in the right directory. Any idea what's the reason?

Thanks in advance for help!

niknah 12-31-2002 10:31 AM

A binary dated 1999 maybe linked to some really old libs, try getting the source and compiling it instead.

buddy 12-31-2002 10:32 AM

IPTraf and not iptraf.

As with most UNIX commands, IPTraf command-line parameters are case-sensitive

Any help?

nutecinc 12-31-2002 10:37 AM

Thanks for the answers!

I did check the file. I swear it was there and its file name is iptraf not ipTraf. I can use "find" or "ls" command to locate the file but when I tried to run it, it just said the file was not there.

niknah, thanks for the tip. I will try to download a new version.

Thanks to Buddy and niknah

SlickWilly 12-31-2002 10:49 AM

Not entirely sure why it's not working for you. But I have one question, and one guide :

1) Why are you running it from cd? Did you install it to cd? You're not trying to run the RPM are you?

2) Here is the homepage for iptraf.

http://iptraf.seul.org/

You can download binaries for 7.2 here :

ftp.redhat.com/pub/redhat/linux/7.2/en/os/i386/RedHat/RPMS/iptraf-2.7.0-3.i386.rpm

rpm -i iptraf-[blah]

iptraf


:)

Slick

nutecinc 12-31-2002 11:10 AM

SlickWilly:

I got the CD from the linux book I bought. And I am kind of lazy to download it in the beginning ><, that's the reason I run it from the CD. It's not RPM file, it's executable file. But for some reason, lots of files on the CD gave me same error messages. I can see those files but I just won't be able to run it. I even copy those files to the local disk but still the same problem. So I download the source file from internet and it works now.

But I am still interested to find out why I can see the file but won't be able to run it though...

Thanks for the guide.

niknah 12-31-2002 11:59 AM

linux sometimes returns a "No such file or directory" if it can't find the libs to link it with, it could mean it can't find the libs not the file.

nutecinc 01-01-2003 09:37 AM

niknah:

Thanks for the answer. I thought it should return like "can't find *.lib or something instead of no such file or directory. But it explains the situation. Thanks again!


All times are GMT -5. The time now is 06:26 AM.