On Mar 16, 2005, at 10:24, Odhiambo Washington wrote:


I am trying to statically compile zlib-1.2.2 into my clamav installation
on FreeBSD 4.11.


cd zlib-1.2.2 && ./configure && make

cd ../clamav-devel

./configure --with-zlib=../zlib-1.2.2 [other opts]

This is obviously wrong and wont give you the results you are after.

I get this error:

<cut>
checking for pthread.h... yes
checking for zlib installation... using ../zlib-1.2.2
configure: error: Please install zlib and zlib-devel packages
</cut>

I'm thinking this should be the correct way. I don't intend to install
zlib-1.2.2 over what is on my system until they import it into the base
system ;)

When you configure zlib without specifying a prefix it will defalut to /usr/local and wont overwrite your existing zlib if it is installed in /usr however, I offer the following advice.


If libz.a is installed in /usr/lib then build zlib 1.2.2 with the following command.
./configure --prefix=/usr && make && make install.


If libz.a is installed in /usr/local/lib then build zlib 1.2.2 with the following command.
./configure && make && make install.


If libz.a is installed in another folder, let me know where and I'll give you a proper build/install command.

By installing an updated zlib, it wont break your system or anything that depends on the zlib libraries and is a safe upgrade to perform from a user standpoint.

Don't be afraid, no harm will come to your system and later when they get it into the RPM's, nothing will break when you update other apps.

As well, I recommend building from source everything you require on your system rather than installing someone's RPM, most RPM's are generic in nature and you usually end up getting stuff you don't want or need, don't get me wrong, I think RPM's are useful as a base to work from and that is where I would start, a basic RPM of the latest OS and build from there.

You also get less problems when you build your own over someone's RPM's and you don't have to wait on anybody to fix anything that doesn't work properly.


-Wash

-- Dale

_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to