Unable to install clamav from sourcery

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
san3813
Posts: 24
Joined: 1. May 2015, 14:05

Unable to install clamav from sourcery

Post by san3813 »

Hello
It asked me to install libwww-perl from gslapt, first. I did. Later, again tried to install clamav. When the installation is about 85% through, suddenly, it says 'unable to compile clamav'
User avatar
ChuangTzu
Donor
Posts: 388
Joined: 19. May 2015, 23:34

Re: Unable to install clamav from sourcery

Post by ChuangTzu »

Try slapt-src -i clamav

and post the exact error that comes up.
Image
Image
User avatar
ChuangTzu
Donor
Posts: 388
Joined: 19. May 2015, 23:34

Re: Unable to install clamav from sourcery

Post by ChuangTzu »

When I ran the above command I received the following feedback:

You must have a "clamav" user and group in order to run this script.
Add them with something like this:
groupadd -g 210 clamav
useradd -u 210 -d /dev/null -s /bin/false -g clamav clamav
fakeroot -- sh clamav.SlackBuild Failed

It appears that after adding the group and user, it still needs "libmilter" (Required libmilter not found. Use --with-libmilter, fakeroot -- sh milter-greylist.SlackBuild Failed) which I was unable to locate. After a quick search online, it appears that others had this problem with clamav on "Slackware" going back to 2005 and the resolved it by installing the rpm version of clamav.

Gapan, any ideas? I don't use it myself, perhaps we need to include this libmilter from somewhere, or a binary of clamav for those who want it. We have "milter-greylist" in sourcery/slapt-src, however, it also requires this libmilter.
Image
Image
User avatar
laprjns
Salix Warrior
Posts: 1113
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: Unable to install clamav from sourcery

Post by laprjns »

ChuangTzu wrote:After a quick search online, it appears that others had this problem with clamav on "Slackware" going back to 2005 and the resolved it by installing the rpm version of clamav.
If it is available from SlackBuild.org then it will build on a Slackware installation. A Salix installation does not include all of the stock Slackware packages so at times when trying to build and installing a package using sourcery (Slapt-src) you may run into missing dependencies which are assumed to be installed by the slackbuild.

In this case the missing package is sendmail (which provides libmilter). So install sendmail with gslapt (or slapt-get) and then clamav will build and install.

Code: Select all

$ sudo slapt-get --install snedmail
In a couple of days, the Salix SBo repo will be undated to add sendmail to calmav dependency list and it will no longer be a problem.

(déjà vu all over again ==> http://forum.salixos.org/viewtopic.php? ... ail#p36512)
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
User avatar
ChuangTzu
Donor
Posts: 388
Joined: 19. May 2015, 23:34

Re: Unable to install clamav from sourcery

Post by ChuangTzu »

Very familiar with Slackware and Salix, just could not figure out what missing package would provide that lib. Makes sense now.
Thank You. LOL, I see why you had Deja vu.

And that should solve the problem for the OP as well.
Post Reply