Dear Linuxers, Got some prob with PHP re-complie with libxml support Running RH 7.0, php-4.0.4pl1. I have already install libxml2-2.3.1-1 & libxml-devel2-2.3.1-1
When I complie php with --with-dom option configure scripta says something is messed up. Checked debug.log. Some error with ld not finding -lxml.
Below is the debug.log file so that you would know what is happening exactly. Also would like to know any good content management softwares in PHP other than PHP NUKE. Would like to have options of creating images on the fly and all that. But pls do advice on that libxml trouble soon.
Best regards, Mayur
----- debug.log CONFIGURE: './configure' '--with-apxs=/usr/sbin/apxs' '--with-mysql' '--with-gd' '--with-ttf' '--with-imap=/u sr/local/hordemod/imap' '--enable-ftp' '--enable-track-vars' '--enable-bcmath' '--enable-trans-sid' '--disable- magic-quotes' '--with-dom' CC: gcc CFLAGS: -g -O2 CPPFLAGS: -DLINUX=2 -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT CXX: CXXFLAGS: INCLUDES: -I/usr/include/apache -I$(top_builddir)/Zend -I/usr/local/include -I/home/ninad/php-4.0.4pl1/ext/ mysql/libmysql LDFLAGS: -Wl,-rpath,/usr/local/lib -L/usr/local/lib LIBS: -lgd -lz -lxml -lresolv -lm -ldl -lcrypt -lnsl -lresolv -Lyes/lib -lz DLIBS: -lc-client SAPI: apache PHP_RPATHS: /usr/local/lib uname -a: Linux interpole.com 2.2.16-22 #1 Tue Aug 22 16:49:06 EDT 2000 i686 unknown
gcc -o conftest -g -O2 -DLINUX=2 -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT -Wl,-rpath,/usr/local/lib -L/usr/local/l ib conftest.c -lgd -lz -lxml -lresolv -lm -ldl -lcrypt -lnsl -lresolv -Lyes/lib -lz 1>&5 /usr/bin/ld: cannot find -lxml collect2: ld returned 1 exit status _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Sometime Today, Mayur Joshi assembled some asciibets to say:
I have already install libxml2-2.3.1-1 & libxml-devel2-2.3.1-1
Where? Find out which directory it is in. You will have to put this directory in /etc/ld.so.conf and rerun /sbin/ldconfig
When I complie php with --with-dom option configure scripta says something is messed up. Checked debug.log. Some error with ld not finding -lxml.
You need to pass the path of libxml.so to gcc using the -L option. There should be some way to do this through configure (maybe --with-xml=/path/to/libxml)
PHP other than PHP NUKE. Would like to have options of creating images on the fly and all that. But pls do advice on that libxml trouble soon.
libgd will allow you to create images on the fly.
Philip