您的位置:首页 > 编程语言 > PHP开发

[install-pear-installer] Error 127 安装PHP时错误

2012-04-03 15:28 831 查看
nstalling PEARenvironment:

/usr/local/php/lib/php/

/usr/local/src/php-5.2.6/sapi/cli/php: error while loading sharedlibraries: libltdl.so.3: cannot open shared object file: No suchfile or directory

make[1]: *** [install-pear-installer] Error 127

make: *** [install-pear] Error 2

ln -s /usr/local/lib/libltdl.so.3/usr/lib/libltdl.so.3

[root@localhost php-5.2.6]# make install

Installing PHP SAPImodule: apache2handler

/usr/local/apache2/build/instdso.shSH_LIBTOOL='/usr/local/apache2/build/libtool' libphp5.la/usr/local/apache2/modules

/usr/local/apache2/build/libtool --mode=install cp libphp5.la/usr/local/apache2/modules/

cp .libs/libphp5.so /usr/local/apache2/modules/libphp5.so

cp .libs/libphp5.lai /usr/local/apache2/modules/libphp5.la

libtool: install: warning: remember to run `libtool --finish/usr/local/src/php-5.2.6/libs'

chmod 755 /usr/local/apache2/modules/libphp5.so

[activating module `php5' in /etc/httpd/httpd.conf]

Installing PHP CLIbinary: /usr/local/php/bin/

Installing PHP CLI manpage: /usr/local/php/man/man1/

Installing buildenvironment: /usr/local/php/lib/php/build/

Installing headerfiles: /usr/local/php/include/php/

Installing helperprograms: /usr/local/php/bin/

program: phpize

program: php-config

Installing manpages: /usr/local/php/man/man1/

page: phpize.1

page: php-config.1

Installing PEARenvironment: /usr/local/php/lib/php/

[PEAR] Console_Getopt - installed: 1.2.3

[PEAR]Archive_Tar -installed: 1.3.2

[PEAR] Structures_Graph- installed: 1.0.2

pear/PEAR can optionally use package "pear/XML_RPC" (version>= 1.4.0)

[PEAR]PEAR - installed: 1.7.1

Wrote PEAR system config file at:/usr/local/php/etc/pear.conf

You may want to add: /usr/local/php/lib/php to your php.iniinclude_path

Installing PDOheaders: /usr/local/php/include/php/ext/pdo/

本文出自 “电子商务解决方案” 博客,请务必保留此出处http://wmrwx.blog.51cto.com/1418507/824665
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: