error while loading shared libraries: libdb-4.3.so

[root@whw-web lib]# /usr/local/apache/bin/apachectl -k start

/usr/local/apache/bin/httpd: error while loading shared libraries: libdb-4.3.so: cannot open shared object file: No such file or directory

[root@whw-web lib]# /usr/local/apache/bin/apachectl -k start

/usr/local/apache/bin/httpd: error while loading shared libraries: libldap-2.3.so.0: cannot open shared object file: No such file or directory

[root@whw-web lib]# /usr/local/apache/bin/apachectl -k start

/usr/local/apache/bin/httpd: error while loading shared libraries: liblber-2.3.so.0: cannot open shared object file: No such file or directory

[root@whw-web lib]# /usr/local/apache/bin/apachectl -k start

直接打包在CentOS5.4的apche 编译好的包到CentOS6.7上运行出现以上提示。

查看/lib64目录发现是

# ln -s /lib64/libdb-4.7.so /lib64/libdb-4.3.so

# ln -s /lib64/liblber-2.4.so.2.10.3 /lib64/liblber-2.3.so.0

# ln -s /lib64/libldap-2.4.so.2 /lib64/libldap-2.3.so.0

你可能感兴趣的:(LINUX)