[Koha] libxslt version 1.1.18 problem

Colin Campbell colin.campbell at ptfs-europe.com
Thu Dec 16 04:15:18 NZDT 2010


On 14/12/10 16:39, Terry Koh wrote:
> Hello everyone,
> 
> This is a pre-Koha install problem - hope it's OK asking it here.
> 
> I'm trying to install Koha 3.02 on CentOS 5.5.  The Koha "make test" asks 
> for libxslt 1.1.18 and quits with an error.
> 
> I've seen the discussions and proposed solutions on this problem in several 
> places including on this list and I tried them out without any joy.  For 
> example, I downloaded libxslt 1.1.18 from debian and tried to install 
> installed it.  But running "make test" throws up errors, asking for higher 
> versions of libxml, etc. and trying to install these now (using rpm) throws 
> up other dependencies and requirements which don't play well with each other.
> 
> I don't know if there is anything specific to Debian in that package that 
> is causing problems with CentOS.  Has anyone got this working with 
> CentOS5.5?  Or is it a CPAN problem?
You can't install debian packages on CentOS. They are not compatible.

The problem is the libxml2 and libxslt libraries which come with CentOS
(and Red Hat Enterprise) are too old a version. In practice I've built
newer ones from source: Here's some instructions written some time back:
> The libxml2 and libxslt are important but the versions available from CentOs are too old.

 Create and install them from SRPMs Check what the latest versions are
on ftp://xmlsoft.org/libxml2 and fetch them e.g.
> 
> wget ftp://xmlsoft.org/libxml2/libxml2-2.7.3-1.src.rpm
> wget ftp://xmlsoft.org/libxml2/libxslt-1.1.24-1.src.rpm
> 
> Now build and install them
> 
> rpm -i libxml2-2.7.3-1.src.rpm
> rpm -i libxslt-1.1.24-1.src.rpm
> cd /usr/src/redhat
> rpmbuild -bb SPECS/libxml2.spec
> cd RPMS/i386
> rpm -Uvh libxml2-*
> cd /usr/src/redhat
> rpmbuild -bb SPECS/libxslt.spec
> cd RPMS/i386
> rpm -Uvh libxslt-*

libsxlt is dependent on the version of libxml2 so it is best to update
both together. Once they are both installed you should be able to
install the perl modules XML::LibXML and XML::LibXSLT  from cpan.

(a horrible further complication is that the later versions of the
libraries are packaged in srpms using a version of rpm which CentOs'
could not read. This might be fixed in 5.5)

Cheers
Colin

-- 
Colin Campbell
Chief Software Engineer,
PTFS Europe Limited
Content Management and Library Solutions
+44 (0) 845 557 5634 (phone)
+44 (0) 7759 633626  (mobile)
colin.campbell at ptfs-europe.com
skype: colin_campbell2

http://www.ptfs-europe.com


More information about the Koha mailing list