Install libxml2 2.7.X on CentOS 5.X
Solution 1:
Make sure you have your development tools installed:
yum groupinstall "Development Tools"
Grab the src rpm:
wget http://xmlsoft.org/sources/libxml2-2.7.8-1.src.rpm
you won't be able to call rpmbuild directly, due to rpm version differnces, so lets short circuit that:
rpm -ivh libxml2-2.7.8-1.src.rpm --nomd5
then:
rpmbuild -ba /usr/src/redhat/SPECS/libxml2.spec
you may be prompted for some dependencies at this point (if so, just yum install
the dependencies in question, then rerun the rpmbuild -ba
command above).
Assuming your build completes successfully (I just tested this on a CentOS 5 box here, and it built fine), the resulting RPMs will be in:
/usr/src/redhat/RPMS/arch
where "arch" is x86_64 or i386, depending on your system. You can yum localinstall --nogpgcheck
the packages from there.