Libxml error while compiling dual php


At the time of dual php compilation,we can face this error,

/usr/src/php-5.2.17/ext/dom/node.c: In function ‘dom_canonicalization’:
/usr/src/php-5.2.17/ext/dom/node.c:1953: error: dereferencing pointer to incomplete type
/usr/src/php-5.2.17/ext/dom/node.c:1955: error: dereferencing pointer to incomplete type
make: *** [ext/dom/node.lo] Error 1

It need to install libxml[http://xmlsoft.org/sources/libxml2-2.7.7.tar.gz]

And compile with specific path,

./configure --prefix=/opt/xml/


Then during Dual php compilation give like this.......>--with-libxml-dir=/opt/xml/


 Method 2:
-------------

1. cd php-5.2.17
 2. ./configure --disable-fileinfo --enable-bcmath --enable-calendar --enable-ftp --enable-gd-native- ttf --enable-libxml --enable-sockets --prefix=/opt/php52 --with-config-file-path=/opt/php52/lib --with-co nfig-file-scan-dir=/opt/php52/lib/php.ini.d --with-curl=/opt/curlssl/ --with-freetype-dir=/usr --with-gd --with-imap=/opt/php_with_imap_client/ --with-imap-ssl=/usr --with-jpeg-dir=/usr --with-kerberos --with-l ibdir=lib64 --with-libxml-dir=/opt/xml2/ --with-mysql=/usr --with-mysql-sock=/var/lib/mysql/mysql.sock -- with-openssl=/usr --with-openssl-dir=/usr --with-pdo-mysql=shared --with-pdo-sqlite=shared --with-pic --w ith-png-dir=/usr --with-xpm-dir=/usr --with-zlib --with-zlib-dir=/usr

3.  make
4. wget https://mail.gnome.org/archives/xml/2012-August/txtbgxGXAvz4N.txt
5. patch -p0 -b < txtbgxGXAvz4N.txt
6. make
7. make install

Comments

Popular posts from this blog

Using a Linux server to route packets between two private networks

PHP Fatal error: Class 'JFactory' not found

KVM & Qemu