Hello !
I try to install php 5.1.1 on a Solaris 9 machine with libxml2 2.6.22
and libxslt 1.1.15 wtih the following configure command :
# ./configure --with-informix=/ifmxbin --with-gd --with-zlib
--with-mcrypt --with-apxs2=/usr/local/apache2/bin/apxs --with-xml
--with-libxml-dir=/usr/local --with-xsl=/usr/local
libxml2 and libxslt are installed in the /usr/local with the regular
configure;make;make install procedure.
I can successfully make php without errors.
When I try a make install I get the following error :
...
Installing header files: /usr/local/include/php/
Installing helper programs: /usr/local/bin/
program: phpize
program: php-config
Installing man pages: /usr/local/man/man1/
page: phpize.1
page: php-config.1
Installing PEAR environment: /usr/local/lib/php/
ld.so.1: php: fatal: relocation error: file
/soft/pub/php-5.1.1/sapi/cli/php: symbol xmlStructuredError: referenced
symbol not found
Killed
make[1]: *** [install-pear-installer] Error 137
make: *** [install-pear] Error 2
I don't understand why the make procedure doesn't try to get the libxml2
lib in /usr/local since I gave --with-libxml-dir=/usr/local in my
configure command.
I found a workaround with /usr/local/lib in first position in the
LD_LIBRARY_PATH :
LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/usr/sfw/lib:/usr/dt/lib:/usr/openwin/lib:/soft/lic/sun/SUNWspro/lib:/soft/lic/sun/s1studio/ee/lib:/ifmxbin/lib:/ifmxbin/lib/esql:/ifmxbin/extend/web.4.13.UC3/apache:/ifmxso
Usually we have /usr/lib in first position in our LD_LIBRARY_PATH ...
Any help would be appreciated ...
Regards
Daniel