「PHPの学習」「make[1]: *** [install-pear-installer] Error 127」エラーメッセージの解決対策

1.エラー現象:
Installing PEAR environment: /usr/local/webserver/httpd-2.2.19/php/lib/php/
/data/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

2.解決対策:
「/usr/local/lib」のパスは「/etc/ld.so.conf」に追加する
vi /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/local/lib
# make install

Development

Posted by arkgame