安装php的时候make test或者直接apache起的话会出这个错误:
ld.so.1: php: fatal: relocation error: file /export/Dev/temp/php-5.1.6/sapi/cli/php: symbol xmlParserInputBufferCreateFilenameDefault: referenced symbol not found
Killed
make[1]: *** [install-pear-installer] Error 137
make: *** [install-pear] Error 2
"
解决方法如下:
After a long investigation I figured out that the problem comes from the native solaris libraries, and mainly from libxml2.so.2 and libgcc_s.so.1.
To fix the problem install the GNU ones and change your PATH to start with /usr/local/bin instead of /usr/bin, also set the LD_LIBRARY_PATH to start with /usr/local/lib instead of /usr/lib
PATH=/usr/local/bin:$PATH
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
请参看:
阅读(2017) | 评论(0) | 转发(0) |