./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的新手..我真的对这个问题一无所知.. 请帮帮我..
答案 0 :(得分:9)
通常情况下,我不想在src中使用“售后市场”构建,而是使用本机 CentOS包。
安装pcre软件包时,也可能导致“未找到PCRE库”错误,而不是pcre-devel软件包。
仅仅'yum install pcre-devel'并重新运行./configure。
答案 1 :(得分: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