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:

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

Discuss This Article


2 Responses to “PHP 5.0.5 Make Install Error”

  1. Adriana on November 24th, 2005 8:34 am #

    Why does this error happend?

  2. Adam Ziegler on November 22nd, 2006 3:52 pm #

    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


Got something to say?






Post Tags (user submitted): make [sapi/cli/php] Error 1 (1045) - t (287) - make: *** [sapi/cli/php] Error 1 (180) - install-pear-installer Error 137 (109) - make: *** [install-pear] Error 2 (78) - [sapi/cli/php] Error 1 (77) - f (60) - install-pear-installer (56) - php make: *** [sapi/cli/php] Error 1 (52) - symbol xmlRelaxNGCleanupTypes: referenced symbol not fo (44) - ld.so.1: php: fatal: relocation error: (41) - [install-pear] Error 2 (41) - make error 2 (41) - make install error 1 (40) - sapi/cli/php (33) - xmlRelaxNGCleanupTypes (31) - php "make install" (31) - php relocation error: (28) - make: *** [*] Error 1 (27) - make[1]: *** [install-pear-installer] Error 137 (25) - make sapi/cli/php error (25) - make [sapi/cli/php] (23) - make[1]: *** [install-pear-installer] Error 127 (22) - [install-pear-installer] Error 127 (21) - "xmlRelaxNGCleanupTypes: referenced symbol not found" (20) - php make install error (20) - "make install" error 2 (20) - make error 3 (20) - make: *** [install] Error 1 (20) - ld.so.1: ./php: fatal (19) - php xml2 (19) - make: *** [all] Error 1 (19) - make install error (18) - make: *** [sapi/cli/php] Erreur 1 (16) - /sapi/cli/php: relocation error: (15) - "make[1]: *** [install-pear-installer]" (15) - ld.so.1: php: fatal: relocation error: file php: symbol (13) - sapi/cli/php +error (13) - php: fatal: relocation error (13) - make: *** [sapi/cli/php] Fehler 1 (13) - php make error (12) - make "Error 137" (12) - ld so 1: php: fatal: libldap-2 3 so 0: (12) - "install-pear-installer" error (11) - SUNwlxml (11) - ld so 1: php: fatal: relocation error: (11) - php xmlRelaxNGCleanupTypes (10) - php 5.0.5 (10) - ld.so.1: php: fatal: relocation error: file (9) - php symbol xmlRelaxNGCleanupTypes (8) - xmlRelaxNGCleanupTypes + php (8) - php5 solaris (8) - pkgrm php (8) - make: ** [sapi/cli/php] Erro 1 (8) - make "error 5" (8) - php "make install" problem (7) - make install pear (7) - fatal: libldap-2 3 so 0: (7) - php: fatal: libldap-2 3 so 0: (7) - make: *** Error 1 (7) - php "symbol xmlRelaxNGCleanupTypes: referenced symbol n (6) - symbol: xmlRelaxNGCleanupTypes (6) - sapi/cli/php: fatal: relocation error: (6) - php install-pear-installer Error 137 (6) - ld.so.1: php: fatal: relocation error: file php (6) - php error 2 (6) - [install-pear-installer] Error 254 (6) - ld.so.1: php: (5) - : referenced symbol not found solaris 9 (5) - php5 make error (5) - php make: *** [sapi/cli/php] (5) - install-pear error (5) - "make: *** [sapi/cli/php] Error 1" PHP (5) - make install errors (5) - php make (5) - php make error 1 (5) - install error 2 (5) - make install problem (5) - gmake[1]: *** [install-pear-installer] Error 137 (5) - ld so 1: httpd: fatal: libldap-2 3 so 0 (5) - make *** error 1 (5) - PHP 5.0.5 installer (4) - php "error 137" (4) - php "make install" pear (4) - ld.so.1: php: fatal: relocation error: file sapi/cli/ph (4) - install "php 5" solaris (4) - php symbol (4) - php install error (4) - solaris php relocation error (4) - "sapi/cli/php" error make (4) - ld.so.1 php installation error pear (4) - pear installer error 137 (4) - make[1]: *** [sapi/cli/php] Error 1 (4) - "error 137" make (4) - [sapi/cli/php] Error 1 + php (4) - php5 + make: *** [sapi/cli/php] Error 1 (4) - ld.so.1: php: fatal: libldap-2.3.so.0 (4) - sapi cli php error 1 (4) - php install-pear-installer (4) - ld so 1: php: fatal: libldap (4) - make: *** [] Erreur 1 (4) - make[1]: *** [install-pear-installer] Error 254 (4) - php make install (4) - make: *** [install] Error 2 (4) - make error 137 (4) - "xmlRelaxNGCleanupTypes" solaris (3) - install php 5 solaris 9 (3) - php make install error PEAR (3) - pear install problems (3) - install php on solaris 9 (3) - /sapi/cli/php: symbol xmlRelaxNGCleanupTypes (3) - symbol xmlRelaxNGCleanupTypes: referenced symbol (3) - php 5.0.5 install (3) - make install php error (3) - "[install-pear-installer] Error 137" php (3) - xmlRelaxNGCleanupTypes not found (3) - howto install pear (3) - [sapi/cli/php] Error 1 solaris (3) - make -s install-pear-installer (3) - "file php: symbol xmlRelaxNGCleanupTypes: referenced sy (3) - sapi/cli/php: not found (3) - fatal: relocation error php (3) - xmlRelaxNGCleanupTypes: referenced (3) - php5 "relocation error" (3) - php: fatal: relocation error: file php: symbol xmlRelax (3) - ld.so.1: php: fatal: relocation error: file symbol xmlR (3) - pear ld.so.1: php: fatal: relocation error: (3) - "[install-pear] Error 1" (3) - "ld.so.1: php: fatal: relocation error: file php: symbo (3) - "php: fatal: relocation error" xml (3) - php installer error (3) - make: *** [install-pear] Error 1 (3) - php5 make install (3) - php solaris ld.so.1 error pkgrm (3) - ld.so.1: php: fatal: relocation error sapi/cli/php (3) - php sapi/cli/php] Error 1 (3) - /sapi/CLI file not found make php (3) - [install-pear-installer] Error 13 (3) - [sapi/cli/php] Error 127 (3) - error 2 php (3) - 1 (3) - make error 254 (3) - make: sapi/cli/php エラー 1 (3) - make error 12 (3) - solaris libldap-2 3 so 0 php (3) - ld so 1: php: fatal: relocation error: php: (3) - ld so 1: php: fatal: relocation error php solaris 10 (3) - make: *** [ ] Error 1 (3) - sapi/cli/php error 1 (3) - fatal: libldap-2.3.so.0 (3) -