linux 安装程序时,库文件找不到的解决方法

来源:互联网 发布:js字符串大小写转换 编辑:程序博客网 时间:2024/04/28 20:44

问题:
./httpd: error while loading shared libraries: libaprutil-0.so.0: cannot open shared object
file: No such file or directory

解决方法:

vi /etc/ld.so.conf,增加/usr/local/apache2/lib 或者
# cp libaprutil-0.so.0 /usr/kerberos/lib
或者创建/usr/local/apache/conf目录,ln -s /usr/local/apache2/conf/httpd.conf
/usr/local/apache/conf/httpd.conf
vi /usr/local/apache2/conf/httpd.conf
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
#/usr/local/apache2/bin/apachectl restart