View Single Post
  #10  
Old 8th March 2006, 04:42
tobiasly tobiasly is offline
Junior Member
 
Join Date: Mar 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

For those who would prefer to install an RPM instead of tarball for zlib, you can download zlib 1.2.3 Source RPM from the following (it's the Fedora development page but you will recompile it for CentOS):

http://download.fedora.redhat.com/pu...lopment/SRPMS/

Find the latest "zlib" package. At the time of this writing it is zlib-1.2.3-1.2.1.src.rpm. Then issue "rpmbuild --rebuild" on the SRPM to compile it for CentOS. This will write two RPMs into /usr/src/redhat/RPMS/i386 (the final directory may be different depending on your arch). Simply "rpm -Uvh" the applicable RPM that is created.

So to summarize:

Code:
wget http://download.fedora.redhat.com/pub/fedora/linux/core/development/SRPMS/zlib-1.2.3-1.2.1.src.rpm
rpmbuild --rebuild zlib-1.2.3-1.2.1.src.rpm
rpm -Uvh /usr/src/redhat/RPMS/i386/zlib-1.2.3-1.2.1.i386.rpm
rpm -Uvh /usr/src/redhat/RPMS/i386/zlib-devel-1.2.3-1.2.1.i386.rpm

Last edited by tobiasly; 8th March 2006 at 05:38.
Reply With Quote