从源代码安装后,Nginx找不到libpcre.so.0

从源代码安装后,Nginx找不到libpcre.so.0,nginx,Nginx,我在ubuntu 14.04上从源代码构建nginx,但是构建之后,当我运行nginx时,我得到以下错误: /etc/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory 原因可能是它被称为libpcre.so。是否有可以为libpcre0安装的软件包 我可以将nginx配置为使用l

我在ubuntu 14.04上从源代码构建nginx,但是构建之后,当我运行nginx时,我得到以下错误:

/etc/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.0: 
     cannot open shared object file: No such file or directory
原因可能是它被称为libpcre.so。是否有可以为libpcre0安装的软件包


我可以将nginx配置为使用libpcre.so.3吗?

以下是如何使用OpenSSL和Pcre-8.36编译nginx,并使用自定义用户名和组获得额外权限:

./configure --with-cc-opt="-I $STATICLIBSSL/include -I/usr/include" \
--with-ld-opt="-L $STATICLIBSSL/lib -Wl,-rpath -lssl -lcrypto -ldl -lz" \
--sbin-path=/usr/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
--pid-path=/var/run/nginx.pid \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--with-pcre=/lib/libpcre.so.1
--with-http_ssl_module \
--with-http_spdy_module \
--with-file-aio \
--with-ipv6 \
--with-http_gzip_static_module \
--with-http_stub_status_module \
--without-mail_pop3_module \
--without-mail_smtp_module \
--without-mail_imap_module \
--user=nginx \
--group=nginx \
--with-http_spdy_module \
--with-http_auth_request_module \
--with-openssl=/root/openssl/openssl-1.0.2a/libssl.a
--with-zlib=/usr/lib/x86_64-linux-gnu/libz.a
选中此项: