libclamav.so error after New ClamAV v0.93

Discuss the ConfigServer MailScanner Front-End script
ccccanada
Junior Member
Posts: 5
Joined: 11 Apr 2008, 15:55

Post by ccccanada »

Hello Sarah!

here is what i did now and same results:

admin@ns10 [~]# su - root
Password:
root@ns10 [~]# bash: ldconfig: command not found
-bash: bash:: command not found
root@ns10 [~]# freshclam
freshclam: error while loading shared libraries: libclamav.so.4: cannot open shared object file: No such file or directory
root@ns10 [~]# service clamd restart
Stopping clamd: [FAILED]
Starting clamd: /usr/local/sbin/clamd: error while loading shared libraries: libclamav.so.4: cannot open shared object file: No such file or directory
[FAILED]
Sarah
Moderator
Posts: 923
Joined: 09 Dec 2006, 22:49

Post by Sarah »

Looks like this time you typed (or pasted in) "bash: ldconfig". Just type "ldconfig" without the quotes and see if that works.
ccccanada
Junior Member
Posts: 5
Joined: 11 Apr 2008, 15:55

Post by ccccanada »

Thank you Sarah all is fine now even though i did not think i used any quotes LOL
Lestat69
Junior Member
Posts: 3
Joined: 03 Jan 2008, 18:02

Post by Lestat69 »

Some other helpful info can be read here as well.

http://forums.cpanel.net/showthread.php ... post360724
Sarah
Moderator
Posts: 923
Joined: 09 Dec 2006, 22:49

Post by Sarah »

Thanks for that information.

Regardingy your comments on the cPanel forum about your posts never appearing on the configserver blog, as stated at the top of the blog page:
"Please note that support is not provided through this blog - any support related comments will be removed."

The appropriate place to get specific help about anything related to our scripts is either here in this forum or on our helpdesk. Thanks.
joker33
Junior Member
Posts: 1
Joined: 23 May 2008, 14:54

ClamAv wont upgrade

Post by joker33 »

Hi everybody,
I made upgrades yesterday to MailScanner and MailScanner Front-End.
i just upgrade CLAMAV, i did the upgrade using mailscanner Interface in WHM, it keep telling me ClamAv is outdated :

Code: Select all

A new version of ClamAV (Current:v0.91.2 New:v0.93) is available


i found in upgrade log this error :

Code: Select all

checking for gcc bug PR28045... configure: error: your compiler has gcc PR28045 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28045
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
.....................
Stopping clamd: [FAILED]
Starting clamd: [FAILED]
i tryed to restart :

Code: Select all

service clamd restart
i get :

Code: Select all

Stopping clamd: [FAILED]
Starting clamd: ERROR: Please define server type (local and/or TCP).
[FAILED]
My MS version :
MailScanner - v4.68.8 installed
ConfigServer MailScanner Script - v2.65 installed and up to date
MailScanner Front-End - v4.22 installed and up to date

CPANEL:WHM :
WHM 11.23.0
cPanel 11.23.1-C24775
FEDORA 4 i686
on standard - WHM X v3.1.0

Can anyone help ?, or has any ideas ?

PS Sarah, i hav lost my account Infos
how can i get it back ?
Eric Zudas.
Sarah
Moderator
Posts: 923
Joined: 09 Dec 2006, 22:49

Post by Sarah »

You are running Fedora Core 4, which has a known bug in gcc as stated in the error message you're getting when trying to upgrade:
checking for gcc bug PR28045... configure: error: your compiler has gcc PR28045 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28045
You will need to either fix that (sorry we can't help with that), switch to a supported OS, or downgrade clamav. To downgrade clamav back to 0.91.2, follow these instructions:

1. Remove current installation of clamav:

Code: Select all

killall clamd

rpm -e clamav-db clamd clamav clamav-devel

/bin/rm -Rfv /usr/bin/clam*
/bin/rm -Rfv /usr/sbin/clam*
/bin/rm -Rfv /usr/lib/libclam*
/bin/rm -Rfv /usr/share/clam*
/bin/rm -Rfv /usr/include/clam*
/bin/rm -Rfv /usr/bin/freshclam*
/bin/rm -Rfv /usr/etc/clamav*

/bin/rm -Rfv /usr/local/bin/clam*
/bin/rm -Rfv /usr/local/sbin/clam*
/bin/rm -Rfv /usr/local/lib/libclam*
/bin/rm -Rfv /usr/local/share/clam*
/bin/rm -Rfv /usr/local/include/clam*
/bin/rm -Rfv /usr/local/bin/freshclam*
/bin/rm -Rfv /usr/local/etc/clamav*
/bin/rm -fv /etc/cron.daily/freshclam
/bin/rm -fv /etc/cron.hourly/freshclam
/bin/rm -fv /etc/cron.d/freshclam

useradd clamav
groupadd clamav
2. Re-install version 0.91.2:

Code: Select all

cd /root/rpms
rm -fv /usr/local/etc/clamd.conf
wget http://prdownloads.sourceforge.net/clamav/clamav-0.91.2.tar.gz
tar -xzf clamav-*
cd clamav-*
./configure --disable-zlib-vcheck
make
make install
replace "Example" "#Example" -- /usr/local/etc/freshclam.conf
replace "Example" "#Example" -- /usr/local/etc/clamd.conf
replace "LocalSocket /tmp/clamd.socket" "LocalSocket /tmp/clamd" -- /usr/local/etc/clamd.conf
freshclam
/bin/cp -fv contrib/init/RedHat/clamd /etc/init.d/clamd
chown root:root /etc/init.d/clamd
chmod x /etc/init.d/clamd
chkconfig clamd on
service clamd restart
cd ..
/bin/rm -Rf clamav-*
cd /root/rpms/
echo 'service[clamav]=x,x,x,service clamd restart,clamd,root' > /etc/chkserv.d/clamav
touch /var/log/clam-update.log
>/var/log/clam-update.log
chown clamav:clamav /var/log/clam-update.log
service chkservd restart
3. Make sure clamav is checked in WHM - Service Manager.

4. Check the MailScanner Configuration and make sure Virus Scannerrs is set to clamd and not clamavmodule.

And be sure not to try to upgrade clamav in MSFE until you have sorted out the OS problem.

Regards,
Sarah
Mrpbody4
Junior Member
Posts: 2
Joined: 04 May 2009, 22:00

I also have this problem...

Post by Mrpbody4 »

I all - I have a CentOS machine running clamav / clamd (both with green lights) and in my exim mainlog I see the following:

May 4 15:40:41 frank MailScanner[12029]: Virus and Content Scanning: Starting
May 4 15:40:41 frank MailScanner[13992]: Cannot find Socket (/tmp/clamd.socket) Exiting!

Can someone please provide some assistance? I tried upping the size limit from 200000 to 300000 and that didn't seem to cure it.

Thank you so much!
Sarah
Moderator
Posts: 923
Joined: 09 Dec 2006, 22:49

Post by Sarah »

You need to change the setting for "Clamd Socket" in MailScanner Configuration from /tmp/clamd.socket to /tmp/clamd.

Then restart MailScanner and clamd (service clamd restart).

However, you should only have one clam service enabled in service manager. You should enable the "clamav" service under Additional Services, NOT the "clamd" service in the main section, which should have both boxes unchecked so it is disabled.

Regards,
Sarah
Mrpbody4
Junior Member
Posts: 2
Joined: 04 May 2009, 22:00

Awesome

Post by Mrpbody4 »

Thanks Sarah,

You rock. That did the trick!
Post Reply