Install libclamav with PHP *cannot find clamav files in default path*
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Anyways I am stuck on the tutorial for installing it in the 'INSTALL' file, where it says to run the command:
Quote:
./configure --with-clamav
It runs for a duration but then halts on the following error:
Quote:
configure:3438: result: yes, shared
configure:3453: checking for clamav files in default path
configure:3465: result: not found
configure:3467: error: Please reinstall the clamav distribution
It suggests that 'configure:3465' that the files where not found going by the line above that.
Not being in the default path, does anyone know where to make libclamav work?
Does anyone know of an easier way of locating such files that it's looking for?
Drastically stuck here, just wondered if anyone could help me please?
I guess it's looking for clamav shared libraries and header files, like libclamav.so and clamav.h.
You didn't say your distro, but you need to use the distro's package manager to install something like libclamav-dev, along with the clamav package
I forgot about that since I have installed a few other packages/modules in PHP and they needed the header files and which ever of a -dev part of an application.
I think it would be an rpm, since it's what came out of iRedMail you see, I will have a hunt around for it anyways and search an outout from yum and see what happens, since I am using Centos 5.6.
Thank you ever so much again though, very helpful,
Jeremy.
Last edited by j.smith1981; 05-27-2011 at 03:49 AM.
As I can remember, this is the latest version, I can just find it on their website can't I?
I mean this is what I have found when I search with yum:
Quote:
clamav.i386 : Anti-virus software
clamav.x86_64 : Anti-virus software
clamav-db.i386 : Virus database for clamav
clamav-db.x86_64 : Virus database for clamav
clamd.i386 : The Clam AntiVirus Daemon
clamd.x86_64 : The Clam AntiVirus Daemon
Thats all there is, when I enable all the repos where rpm packages can be found, thats the whole list when I search even for just 'clam' without anything else!
Any help as usual is appreciated, failing that I could just use the exec() command in PHP to use the shell but that would take a little more work than what I originally wanted.
Just thought it would be quite interesting to get this working.
As I said any help's much appreciated!
Jeremy.
Last edited by j.smith1981; 05-27-2011 at 04:04 AM.
You can ignore the last comment and a final thank you ever so much for helping me out, it's loaded the signatures, weird how it wasn't working when I set it in the php.d/clamav.ini file I made, where to locate the db files.
I did a manual reboot of my server and it worked eventually, so thank you once again, now this post is closed, must be something wrong with their logic in the test scripts, probably did not change something maybe they should have.
Quite used to that now in my time of web development work, also it's not really sucking too much power out either, which is what I was worried about.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.