PHP 5.0.5 Make Install Error

After getting PHP 5.0.5 to compile on my Solaris 9 server, I got the following error when doing the make install: php: fatal: relocation error: file /u01/packages/src/php-5.0.5/sapi/cli/php: symbol xmlRelaxNGCleanupTypes: referenced symbol not found

make[1]: *** [install-pear-installer] Error 137
make: *** [install-pear] Error 2

Turns out that the Sun XML packages are stomping all over the xml2 package from Simply removing the following two packages allowed the make install to complete.

# pkgrm SUNWlxml
# pkgrm SUNWlxmlx

2 thoughts on “PHP 5.0.5 Make Install Error

  1. Instead of removing the other xml packages, you can add “–with-libxml-dir=/usr/local” to the ./configure. Be sure to make clean before a you attempt to make again.

    I also had luck with adding /usr/local/lib to the front of my LD_LIBRARY_PATH:

    Hope this helps

Leave a Reply