[horde] I need help - Error: XML Parser support: No - The libxml version is too old. libxml 2.7 or later is required.
Luis Felipe Marzagao
lfbm.andamentos at gmail.com
Sat Dec 17 12:32:47 UTC 2011
Em 16/12/11 18:58, San escreveu:
> Hello,
>
> I need help because I installed Horde 4 on CentOS 5.6 x86_64 and when I
> test the Horde with PHP I get the following error:
>
>
> When I open the browser and access: http://<url>/test.php, I got the error
> bellow:
> -------------------------------------------------------------------------------------------------
> XML Parser support: No
> The libxml version is too old. libxml 2.7 or later is required.
> -------------------------------------------------------------------------------------------------
Upgrade to CentOS 6.
> And... I can't read HTML messages sent to me... because Horde only show the
> messages is in plain/text...
>
> And all the messages with charset UTF-8 sent to me has the problem with
> accent (á, é, ó, â, ê, ô, ã, õ) and cedilla (ç) in another server that I
> tested... the messages whith charset ISO-8859-1 I don't have the problem...
>
>
> More info:
>
> When I access: http://<url>/test.php?mode=phpinfo, I got:
> -------------------------------------------------------------------------------------------------
> dom
> libxml Version 2.6.26
>
>
> libxml
>
> libXML support active
> libXML Compiled Version 2.6.26
> libXML Loaded Version 20703
> libXML streams enabled
> -------------------------------------------------------------------------------------------------
>
> Over here ok, I understand that PHP think's that the CentOS 5.6 x86_64 has
> libxml 2.6.26, but I compiled and installed libxml 2.7.8 using: Install
> libxml2 2.7.X on CentOS 5.X (
> http://serverfault.com/questions/266927/install-libxml2-2-7-x-on-centos-5-x)
>
> [root at localhost www]# rpm -qa | grep libxml
> libxml2-devel-2.7.8-1
> libxml2-python-2.7.8-1
> libxml2-2.7.8-1<---- Look here
>
> [root at localhost www]# ldconfig -p | grep libxml
> libxml2.so.2 (libc6,x86-64) => /usr/local/lib/libxml2.so.2
> libxml2.so.2 (libc6,x86-64) => /usr/lib64/libxml2.so.2
> libxml2.so (libc6,x86-64) => /usr/local/lib/libxml2.so
>
>
> [root at localhost www]# ls -l /usr/local/lib/libxml2.so.2
> /usr/lib64/libxml2.so.2 /usr/local/lib/libxml2.so
> lrwxrwxrwx 1 root root 16 Dec 16 18:14 /usr/lib64/libxml2.so.2 ->
> libxml2.so.2.7.8<---- Look here
> lrwxrwxrwx 1 root root 16 Dec 6 17:21 /usr/local/lib/libxml2.so ->
> libxml2.so.2.7.3<---- Look here
> lrwxrwxrwx 1 root root 16 Dec 6 17:21 /usr/local/lib/libxml2.so.2 ->
> libxml2.so.2.7.3<---- Look here
>
>
> [root at localhost www]# lsof | grep libxml
> httpd 10409 root mem REG 253,0 4112534
> 76639 /usr/local/lib/libxml2.so.2.7.3<---- Look here
> httpd 10410 apache mem REG 253,0 4112534
> 76639 /usr/local/lib/libxml2.so.2.7.3<---- Look here
> httpd 10411 apache mem REG 253,0 4112534
> 76639 /usr/local/lib/libxml2.so.2.7.3<---- Look here
> httpd 10412 apache mem REG 253,0 4112534
> 76639 /usr/local/lib/libxml2.so.2.7.3<---- Look here
> httpd 10413 apache mem REG 253,0 4112534
> 76639 /usr/local/lib/libxml2.so.2.7.3<---- Look here
> httpd 10415 apache mem REG 253,0 4112534
> 76639 /usr/local/lib/libxml2.so.2.7.3<---- Look here
> httpd 10416 apache mem REG 253,0 4112534
> 76639 /usr/local/lib/libxml2.so.2.7.3<---- Look here
> httpd 10417 apache mem REG 253,0 4112534
> 76639 /usr/local/lib/libxml2.so.2.7.3<---- Look here
> httpd 10418 apache mem REG 253,0 4112534
> 76639 /usr/local/lib/libxml2.so.2.7.3<---- Look here
>
>
> [root at localhost www]# ldd /etc/httpd/modules/libphp5.so
> linux-vdso.so.1 => (0x00007fff1a990000)
> libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00002b6d6c0e4000)
> libgmp.so.3 => /usr/lib64/libgmp.so.3 (0x00002b6d6c31c000)
> libbz2.so.1 => /usr/lib64/libbz2.so.1 (0x00002b6d6c556000)
> libz.so.1 => /usr/lib64/libz.so.1 (0x00002b6d6c766000)
> librt.so.1 => /lib64/librt.so.1 (0x00002b6d6c97a000)
> libm.so.6 => /lib64/libm.so.6 (0x00002b6d6cb84000)
> libdl.so.2 => /lib64/libdl.so.2 (0x00002b6d6ce07000)
> libnsl.so.1 => /lib64/libnsl.so.1 (0x00002b6d6d00b000)
> libxml2.so.2 => /usr/local/lib/libxml2.so.2 (0x00002b6d6d224000)
> <---- Look here
> libgssapi_krb5.so.2 => /usr/lib64/libgssapi_krb5.so.2 (0x00002b6d6d563000)
> libkrb5.so.3 => /usr/lib64/libkrb5.so.3 (0x00002b6d6d791000)
> libk5crypto.so.3 => /usr/lib64/libk5crypto.so.3 (0x00002b6d6da27000)
> libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00002b6d6dc4c000)
> libssl.so.6 => /lib64/libssl.so.6 (0x00002b6d6de4e000)
> libcrypto.so.6 => /lib64/libcrypto.so.6 (0x00002b6d6e09b000)
> libc.so.6 => /lib64/libc.so.6 (0x00002b6d6e3ec000)
> libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b6d6e744000)
> /lib64/ld-linux-x86-64.so.2 (0x00002b6d6b8fe000)
> libkrb5support.so.0 => /usr/lib64/libkrb5support.so.0 (0x00002b6d6e960000)
> libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00002b6d6eb68000)
> libresolv.so.2 => /lib64/libresolv.so.2 (0x00002b6d6ed6a000)
> libselinux.so.1 => /lib64/libselinux.so.1 (0x00002b6d6ef80000)
> libsepol.so.1 => /lib64/libsepol.so.1 (0x00002b6d6f198000)
>
>
>
>
> I'm using the following PHP packages:
>
> [root at localhost www]# rpm -qa | grep php
> php-tidy-5.3.8-1.w5
> php-mbstring-5.3.8-1.w5
> php-cli-5.3.8-1.w5
> php-5.3.8-1.w5
> php-pdo-5.3.8-1.w5
> php-mysql-5.3.8-1.w5
> php-common-5.3.8-1.w5
> php-gd-5.3.8-1.w5
> php-pear-1.9.4-1.w5
> php-xml-5.3.8-1.w5<------- May be is this the problem? I don't
> know...
> php-ldap-5.3.8-1.w5
> php-devel-5.3.8-1.w5
> php-mcrypt-5.3.8-1.w5
>
>
>
>
>
> All that use XML are using the 2.7.8 libxml2 library, so why the PHP info
> show libxml 2.6???
>
> [root at localhost www]# rpm -q --filesbypkg php-xml-5.3.8-1.w5
> php-xml /etc/php.d/dom.ini
> php-xml /etc/php.d/wddx.ini
> php-xml /etc/php.d/xmlreader.ini
> php-xml /etc/php.d/xmlwriter.ini
> php-xml /etc/php.d/xsl.ini
> php-xml /usr/lib64/php/modules/dom.so<----
> Look here
> php-xml /usr/lib64/php/modules/wddx.so
> php-xml /usr/lib64/php/modules/xmlreader.so
> <---- Look here
> php-xml /usr/lib64/php/modules/xmlwriter.so
> <---- Look here
> php-xml /usr/lib64/php/modules/xsl.so
>
>
> [root at localhost www]# ldd /usr/lib64/php/modules/xmlreader.so
> linux-vdso.so.1 => (0x00007fffbb6e7000)
> libxml2.so.2 => /usr/local/lib/libxml2.so.2 (0x00002b2937a9c000)
> <---- Look here
> libz.so.1 => /usr/lib64/libz.so.1 (0x00002b2937ddb000)
> libm.so.6 => /lib64/libm.so.6 (0x00002b2937ff0000)
> libc.so.6 => /lib64/libc.so.6 (0x00002b2938273000)
> libdl.so.2 => /lib64/libdl.so.2 (0x00002b29385cb000)
> /lib64/ld-linux-x86-64.so.2 (0x00002b293766c000)
>
> [root at localhost www]# ldd /usr/lib64/php/modules/xmlwriter.so
> linux-vdso.so.1 => (0x00007fff20777000)
> libxml2.so.2 => /usr/local/lib/libxml2.so.2 (0x00002ba6a6105000)
> <---- Look here
> libz.so.1 => /usr/lib64/libz.so.1 (0x00002ba6a6444000)
> libm.so.6 => /lib64/libm.so.6 (0x00002ba6a6659000)
> libc.so.6 => /lib64/libc.so.6 (0x00002ba6a68dc000)
> libdl.so.2 => /lib64/libdl.so.2 (0x00002ba6a6c34000)
> /lib64/ld-linux-x86-64.so.2 (0x00002ba6a5cd1000)
>
> [root at localhost www]# ldd /usr/lib64/php/modules/dom.so
> linux-vdso.so.1 => (0x00007fff937fc000)
> libxml2.so.2 => /usr/local/lib/libxml2.so.2 (0x00002ac93fb7a000)
> <---- Look here
> libz.so.1 => /usr/lib64/libz.so.1 (0x00002ac93feb9000)
> libm.so.6 => /lib64/libm.so.6 (0x00002ac9400ce000)
> libc.so.6 => /lib64/libc.so.6 (0x00002ac940351000)
> libdl.so.2 => /lib64/libdl.so.2 (0x00002ac9406a9000)
> /lib64/ld-linux-x86-64.so.2 (0x00002ac93f728000)
>
>
> What can I do?
>
> Regard's,
>
>
> Alessandro.
More information about the horde
mailing list