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*

我的配置有什么问题?对了,我的电脑是64bit centos6,现在正在安装nginx 1.3.0(开发版)

--------- 添加 -----------

我忘了说它比我添加的那些 --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-devel 包时,也可能导致“PCRE Library Not Found”错误。

只是,'yum install pcre-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-optand--with-ld-opt设置 nginx 搜索的包含和库路径。由于您已经通过 yum 安装了所有库,我希望您真正需要的是:

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