如此经年,望尽千帆。
分类: LINUX
2012-12-15 22:28:23
ssh 后,安装遇到了如下问题:
1、gcc-c++没有安装,会导致安装pcre的时候,报c++编译器没找到,直接安装:yum install gcc-c++即可
2、zlib包无法找到,安装:yum install zlib-devel即可
3、error while loading shared libraries: libpcre.so.1:[root@bogon nginx-1.0.12]# ldd $(which /usr/local/nginx/sbin/nginx)
linux-vdso.so.1 => (0x00007fff7e9db000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fe4629d0000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fe462799000)
libpcre.so.1 => not found//确实没找到
libz.so.1 => /lib64/libz.so.1 (0x00007fe462582000)
libc.so.6 => /lib64/libc.so.6 (0x00007fe4621e1000)
/lib64/ld-linux-x86-64.so.2 (0x00007fe462bfa000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007fe461f7e000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fe461d7a000)
[root@bogon nginx-1.0.12]# cd /lib64/
[root@bogon lib64]# ln -s libpcre.so.0.0.1 libpcre.so.1
[root@bogon lib64]# ldd $(which /usr/local/nginx/sbin/nginx)
linux-vdso.so.1 => (0x00007fff4d7ff000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fb06f13e000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fb06ef07000)
libpcre.so.1 => /lib64/libpcre.so.1 (0x00007fb06ecda000)
libz.so.1 => /lib64/libz.so.1 (0x00007fb06eac4000)
libc.so.6 => /lib64/libc.so.6 (0x00007fb06e723000)
/lib64/ld-linux-x86-64.so.2 (0x00007fb06f368000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007fb06e4c0000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fb06e2bc000)
本文转自: