PHP 5.0.5 Make Install Error

Notice: wpdb::escape is deprecated since version 3.6! Use wpdb::prepare() or esc_sql() instead. in /var/www/wphost/wp-includes/functions.php on line 3201 Notice: wpdb::escape is deprecated since version 3.6! Use wpdb::prepare() or esc_sql() instead. in /var/www/wphost/wp-includes/functions.php on line 3201

After getting PHP 5.0.5 to compile on my Solaris 9 server, I got the following error when doing the make install:

ld.so.1: php: fatal: relocation error: file /u01/packages/src/php-5.0.5/sapi/cli/php: symbol xmlRelaxNGCleanupTypes: referenced symbol not found
Killed

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 http://xmlsoft.org/. 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:
    “LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH”

    Hope this helps

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>