0
./configure --user=boxflux 
            --group=boxflux 
            --prefix=/usr/local/nginx-1.3.0                    
            --with-pcre=/usr/lib64 
            --with-md5=/usr/lib64 
            --with-sha1=/usr/lib64 
            --with-zlib=/usr/lib64 
            --with-libatomic=/usr/lib64 
            --with-openssl=/usr/lib64 | grep 'not found'
checking for sys/filio.h ... not found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for F_READAHEAD ... not found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for dlopen() ... not found
checking for SO_SETFIB ... not found
checking for SO_ACCEPTFILTER ... not found
checking for setproctitle() ... not found
checking for POSIX semaphores ... not found
checking for struct dirent.d_namlen ... not found

nginxのインストールに問題があります。「yum」を使用してgcc、pcre *、zlib *、openssl*をすでにインストールしています。

構成の何が問題になっていますか?ちなみに、私のコンピューターは64ビットcentos6で、nginx 1.3.0(開発版)をインストールしています。

--------- ADDITOIN -----------------------

--with-* = DIRを追加するよりもさらに悪いことを言うのを忘れました...kolbyjackがくれたコードの行を実行すると、結果は..

./configure --user=boxflux --group=boxflux --prefix=/usr/local/nginx-1.3.0 |grep 'not found'
checking for sys/filio.h ... not found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for F_READAHEAD ... not found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for dlopen() ... not found
checking for SO_SETFIB ... not found
checking for SO_ACCEPTFILTER ... not found
checking for setproctitle() ... not found
checking for POSIX semaphores ... not found
checking for struct dirent.d_namlen ... not found
checking for PCRE JIT support ... not found
checking for system md library ... not found
checking for system md5 library ... not found
checking for sha1 in system md library ... not found

私はcentos6の初心者なので、この問題についてはまったくわかりません。助けてください。

4

2 に答える 2

11

多くの場合、srcからの「アフターマーケット」ビルドを使用せず、代わりにネイティブCentOSパッケージを使用したいと思います。

「PCREライブラリが見つかりません」エラーは、pcreパッケージがインストールされているが、pcre-develパッケージがインストールされていない場合にも発生する可能性があります。

単に、「yuminstallpcre-devel」を実行して./configureを再実行します。

于 2013-01-30T23:46:55.440 に答える
4

差出人./configure --help

--with-pcre=DIR                    set path to PCRE library sources
--with-md5=DIR                     set path to md5 library sources
--with-sha1=DIR                    set path to sha1 library sources
--with-zlib=DIR                    set path to zlib library sources
--with-libatomic=DIR               set path to libatomic_ops library sources
--with-openssl=DIR                 set path to OpenSSL library sources

ヘルプテキストを読むと、これらの各オプションは、インストールされているライブラリのバージョンではなく、ライブラリソースのディレクトリを設定します。ライブラリがすでにシステムにインストールされている場合、nginxは構成中にライブラリを自動的に検出する必要があります。非標準の場所にインストールされている場合は、を使用--with-cc-opt--with-ld-optて、nginxが検索するインクルードパスとライブラリパスを設定する必要があります。yumを介してすべてのライブラリをインストールしたので、本当に必要なのは次のことだけだと思います。

./configure --user=boxflux --group=boxflux --prefix=/usr/local/nginx-1.3.0
于 2012-06-05T13:02:47.763 に答える