Problem compiling nginx-0-6-34 on CentOS 5.2 x86_64

Maxim Dounin mdounin at
Fri Dec 12 03:39:22 MSK 2008


On Thu, Dec 11, 2008 at 03:01:26PM -0800, Yazz Atlas wrote:

> I am unable to compile nginx with SSL support under CentOS 5.2 x86_64
> currently.
> ./configure --prefix=/opt/nginx --with-openssl=/usr/lib64 \
>                  --with-md5=/usr/lib64 --with-sha1=/usr/lib64 \
>                  --with-http_ssl_module

Configure options '--with-openssl', '--with-md5' and '--with-sha1' 
define paths to appropriate library *sources* and should be 
used only if you want to compile them with nginx itself.  For 
obvious reasons your configure string is wrong.

Use --with-cc-opt and --with-ld-opt instead as appropriate.  Something 
like this will probably do the trick: 

./configure --prefix=/opt/nginx \
    --with-ld-opt="-L /usr/lib64" \

Maxim Dounin

More information about the nginx mailing list