在安装php过程中make install时候的报错: Installing PEAR environment: /usr/local/php/lib/php/ /home/sysadmin/zhaoyj/software/php-5.2.17/sapi/cli/php: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory make[1]: *** [install-pear-installer] Error 127 make: *** [install-pear] Error 2
解决方法是将/usr/local/lib路径添加到/etc/ld.so.conf文件中, 然后用ldconfig命令加载,再重新输入make install命令就可以了 [root@XKWB5510 php-5.2.17]# cat /etc/ld.so.conf include ld.so.conf.d/*.conf /usr/local/lib
|