2012-06-05 134 views
-1
./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的問題.. 我已經安裝了GCC,PCRE *,zlib的*,OpenSSL的*用 '蔭'安裝Nginx的

什麼是我的配置問題? 順便說一句,我的電腦是64bit的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一個新手..我真的沒有任何想法,對這個問題.. 請幫助我..

+0

你爲什麼覺得你有什麼問題?好的,你在系統中沒有kqueue。當然,你還沒有,因爲你的系統不是FreeBSD。 – VBart

+0

感謝VBart〜當我運行「sudo yum install * kqueue *」時,結果是「sudo yum install * kqueue *」 如何在我的centos6上安裝kqueue?請理解..因爲我是一個新手在centos上。 – Anderson

+1

您不能在centos6上安裝kqueue,因爲它具有* BSD內核功能。 如果你想要kqueue支持,你選擇了錯誤的操作系統。 NetBSD,OpenBSD,DragonflyBSD和Mac OS X都支持kqueue,但Linux沒有。可能你可以用bsd內核運行centos,但這不是個好主意。 Nginx不需要運行所有這些功能。不同的操作系統有不同的功能,NGINX只是想知道哪些系統支持。 – VBart

回答

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 
+0

謝謝kolbyjack〜 – Anderson

7

很多時候,我寧願不使用「後市場」從SRC建造,而是使用本地 CentOS軟件包。

當安裝了pcre軟件包但不包含pcre-devel軟件包時,也會導致「PCRE Library Not Found」錯誤。

僅僅是'yum install pcre-devel'並重新運行./configure。