今天编译nginx 1.2.9。用-t提示:(文章来源 www.pms.cc)
[root@pms.cc download]# /usr/local/nginx/sbin/nginx -t
/usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
查了下:
cd /lib
ln -s libpcre.so.0.0.1 libpcre.so.1
配置成功:(文章来源 www.pms.cc)
[root@pms.cc lib]# /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
声明: 本文采用 BY-NC-SA 协议进行授权. 转载请注明转自: nginx: error while loading shared libraries: libpcre.so.1