Issue
./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
I have a problem installing nginx.. I've already installed gcc, pcre*, zlib*, openssl* by using 'yum'
What's problem with my configuration? By the way, my computer is 64bit centos6 and I'm now installing nginx 1.3.0 (development version)
--------- ADDITOIN -----------------------
I forgot to mention that it was even worse than I added those --with-*=DIR... When I run a line of code kolbyjack gave me, the result is..
./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
Since I am a newbie on centos6.. I really have no any idea on this issue.. please help me..
Solution
From ./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
If you read the help text, each of those options set the directory for the library sources, not the installed version of the library. If the library is already installed on the system, nginx should automatically find it during configure. If it's installed in a nonstandard location, you should use --with-cc-opt
and --with-ld-opt
to set the include and library paths for nginx to search. Since you've installed all the libs via yum, I expect that all you really need is:
./configure --user=boxflux --group=boxflux --prefix=/usr/local/nginx-1.3.0
Answered By - kolbyjack Answer Checked By - Gilberto Lyons (WPSolving Admin)