-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Jun 14, 2006, at 11:01 , Kevin Lowe wrote:

Hi Dennis,

Many thanks for all your help and time.

I've tried compiling both packages in /usr/home/USERNAME/local and am still
getting the same errors as before.

 ./configure --with-clamav --prefix=/usr/home/USERNAME/local
and
./configure --with-clamav=/usr/home/solomon2/local --prefix=/usr/ home/USERNA
ME/local

both give:
configure: error: can not find sources in . or ..

Trying :

./configure --with-clamav=/usr/home/USERNAME/local --prefix=/usr/ home/USERNA
ME/local --srcdir=/usr/home/USERNAME/clamav-0.88.2
and
./configure --with-clamav --prefix=/usr/home/USERNAME/local -- srcdir=/usr/ho
me/USERNAME/clamav-0.88.2

both give this error after a few lines:
./configure: 1156: Syntax error: word unexpected (expecting ")")

I still have not got my php.ini edited, could that be the problem?

I did not set the LDFLAGS as you sugested yesterday, is this still required?

Thanks Kevin

Well, I've seen enough of this thread so it's time to put it to bed.

The code you're using for the PHP/ClamAV module, where did it come from? (more than likely it's the Nick Loeve code and not the code I rewrote)

I've had issues with this code on non-mandrake systems was my reason for abandoning it.

I was thinking that it should be included with the ClamAV software but never got around to putting together a proper package (so Thomasz wouldn't have to do any work) and handed it out to a handful of people who said they'd distribute it but they got it working for themselves providing a link was no longer a priority.

What version of PHP are you using?

Do you have more than one version of PHP installed?

If you've experienced any issues with phpize then something isn't right.

SEE:
        http://www.daleenterprise.com/info.php
        http://www.daleenterprise.com/clamav_info.php





I reproduced your problem and worked through it thusly:

./configure --with-clamav=/usr/home/USERNAME/bin/clam

make

cd modules
ldd clamav.so

... lots of data with library paths correctly identified

When you built clamav all the libs, binaries, includes, manpages, etc., were put in the "--prefix=..." directory as subdirectories, so that is
where to tell php-clamavlib's build process to look for the parts it
needs. It's a bit messy and not the way I'd do it, but it will work.
Adding yet another --prefix in the php-clamavlib build process makes
things yet more messy, but again, it will work.

I presume you haven't access to /usr/local, so what I'd do is use this
prefix:

--prefix=/usr/home/USERNAME/local

for both builds. You will end up with /usr/home/USERNAME/local/ with
bin, sbin, lib, man, share, etc in there (the basic gnu structure) and
these can be reused for other applications if you build more later.

dp

- -- Dale

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (Darwin)

iD8DBQFEkGG5iD9DTPch4RQRAjYwAKC+H6yeDXYP+EsjMFev06udnMfZVACgi7tH
RBblkEHsOfgCAwQ7OQ8Ky9c=
=P/Jd
-----END PGP SIGNATURE-----
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to