LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 02-17-2007, 09:52 AM   #1
DonCyborg
LQ Newbie
 
Registered: Feb 2003
Location: Europe
Distribution: Debian Sarge
Posts: 9

Rep: Reputation: 0
Unhappy file "antivir" not found although present


Hi all,
I got a problem with my virus scanner recently. (Ok, you can argue about whether it is useful for linux or not.)
The executable file of it is /usr/lib/AntiVir/antivir. When I list it via "ls" it is also there. But if I try to start it ("./antivir" or just "antivir"), the message: "No such file or directory" appears.
This looks quite strange to me, because I didn't change any settings and the program worked fine before. I already tried reinstalling it, but with no success. "fsck" also didn't find any irregularities. Does anybody know, what to do about that?
Thanks.
 
Old 02-17-2007, 10:01 AM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
what is your PATH?
is the file executable?
 
Old 02-17-2007, 10:12 AM   #3
DonCyborg
LQ Newbie
 
Registered: Feb 2003
Location: Europe
Distribution: Debian Sarge
Posts: 9

Original Poster
Rep: Reputation: 0
/usr/bin is mentioned in PATH. In there (/usr/bin) is a softlink named "antivir" to /usr/lib/AntiVir/ (wherein the binary "antivir" is situated.) the binary is executable. and I otherwise didn't change any settings...


/etc/profile:
if [ "`id -u`" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X1
1"
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
fi
 
Old 02-17-2007, 10:16 AM   #4
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
what does "which antivir" say?
can you post the output of "ls -l /usr/bin/Antivir/anti*" ?
 
Old 02-17-2007, 10:58 AM   #5
DonCyborg
LQ Newbie
 
Registered: Feb 2003
Location: Europe
Distribution: Debian Sarge
Posts: 9

Original Poster
Rep: Reputation: 0
"which antivir" says: "/usr/bin/antivir"
and "ls -l /usr/lib/AntiVir/" says:

debian:/usr/lib/AntiVir# ls -l
total 13532
-rw-r--r-- 1 root antivir 21012 Feb 11 16:26 MANUAL.avguard
drwxr-xr-x 2 root antivir 4096 Aug 30 14:00 agent
-rwxr-xr-x 1 root antivir 3080704 Feb 11 16:25 antivir
-rwxr-xr-x 1 root antivir 5285 Feb 11 16:27 antivir-gui
-rw-r--r-- 1 root antivir 7371264 Feb 11 16:25 antivir0.vdf
-rw-r--r-- 1 root antivir 1424384 Feb 11 16:25 antivir1.vdf
-rw-r--r-- 1 root antivir 2048 Feb 11 16:25 antivir2.vdf
-rw-r--r-- 1 root antivir 2048 Feb 11 16:25 antivir3.vdf
-rwxr-xr-x 1 root antivir 8455 Feb 11 16:26 avguard
-rw-r--r-- 1 root antivir 1840104 Feb 11 16:26 avserver_de.pdf
-rwxr-xr-x 1 root antivir 3776 Nov 29 17:00 avupdater
-rwxr-xr-x 1 root antivir 21223 Feb 11 16:25 configantivir
drwxr-xr-x 8 root antivir 4096 Aug 4 2006 gui
-rw-r--r-- 1 root antivir 1024 Nov 29 16:59 hbedv.key
-rw-r--r-- 1 root antivir 1024 Feb 11 16:25 hbedv2.key
-rw-r--r-- 1 root antivir 1024 Feb 2 09:32 personaledition_classic.key
drwx------ 2 root antivir 4096 Nov 29 17:11 updcomp
debian:/usr/lib/AntiVir#

avguard, avupdater are working, but produce error messages. configupdater works without errors. But antivir-gui also stops with "no such file or directory"

And "antivir" stops with the message:
-su: ./antivir: No such file or directory

I'm working on a amd64 machine here and I have installed a 32-bit chroot. But I can't imagine, any possible change of settings for that could effect antivir not to work. Isn't it?

Last edited by DonCyborg; 02-17-2007 at 11:11 AM.
 
Old 02-17-2007, 11:37 AM   #6
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
It says "-su:, but nowhere you mentionned you use su to run it. What is the exact command you use?

Is this antivir file a script? (Try "file antivir")
If so, maybe it runs and there is a command inside the script that doesn't work. In any case, try "strace antivir" and look at the error messages.
 
Old 02-17-2007, 11:57 AM   #7
DonCyborg
LQ Newbie
 
Registered: Feb 2003
Location: Europe
Distribution: Debian Sarge
Posts: 9

Original Poster
Rep: Reputation: 0
Sorry, I thought it was not of importance, because both, trying to run it as normal user or as su produces the same error message.

Now again as su, because the files are owned by root:

debian:~# cd /usr/lib/AntiVir/
debian:/usr/lib/AntiVir# file antivir
antivir: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped
debian:/usr/lib/AntiVir# strace antivir
strace: exec: No such file or directory
execve("/usr/bin/antivir", ["antivir"], [/* 15 vars */]) = 0
debian:/usr/lib/AntiVir#

Hm, that sounds, as if there could be indeed a problem with 32bit programm in 64-bit debian, isn't it? But initially it worked very well without explicitly changing into the chroot. But thats a hint I will follow soon.
Thank you very much for your kind help, uselpa. I'll post, if I get it working again. thanks again.
bye

Last edited by DonCyborg; 02-17-2007 at 12:01 PM.
 
  


Reply

Tags
antivirus, file


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
echo "blabla" in a script present present in /etc/rc.d/rc5.d/S96dinesh murugesan Linux - Newbie 3 04-14-2009 10:53 PM
Red hat Install: "No valid devices found on which to create new file systems" Lucky_69 Linux - Software 1 02-06-2007 09:19 PM
.kde/Autostart bash scripts "file not found" Nice-n-Slow Linux - Software 1 07-02-2004 05:25 PM
Unable to Mount," Bogus File System Found" nav_Lin Linux - Newbie 1 04-16-2004 09:27 PM
Apache error_log "file not found" question WorldBuilder Linux - Networking 4 11-26-2003 12:53 PM


All times are GMT -5. The time now is 10:36 AM.

Main Menu
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