簡體   English   中英

從源代碼安裝后Nginx無法找到libpcre.so.0

[英]Nginx unable to find libpcre.so.0 after install from source

我正在從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.3。 我可以為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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM