Welcome! Log In Create A New Profile

Advanced

How to dynamic link openssl

Posted by sbagmeijer 
How to dynamic link openssl
October 22, 2016 08:41AM
I try to compile nginx with a own openssl version but i keep getting the following error:

make -f objs/Makefile
make[1]: Entering directory `/root/nginx-1.10.2'
cd /usr/local/ulyaoth/ssl/openssl1.1.0 \
&& if [ -f Makefile ]; then make clean; fi \
&& ./config --prefix=/usr/local/ulyaoth/ssl/openssl1.1.0/.openssl no-shared \
&& make \
&& make install_sw LIBDIR=lib
/bin/sh: line 2: ./config: No such file or directory
make[1]: *** [/usr/local/ulyaoth/ssl/openssl1.1.0/.openssl/include/openssl/ssl.h] Error 127
make[1]: Leaving directory `/root/nginx-1.10.2'
make: *** [build] Error 2

The problem is it keep adding this ".openssl" in between.

How can I compile nginx to use my open ssl dynamically?

I have tried the following way:
./configure --with-http_ssl_module --with-openssl=/usr/local/ulyaoth/ssl/openssl1.1.0

and
./configure --with-cc-opt="-I/usr/local/ulyaoth/ssl/openssl1.1.0/include" --with-ld-opt="-L /usr/local/ulyaoth/ssl/openssl1.1.0/lib" --with-http_ssl_module --with-openssl=/usr/local/ulyaoth/ssl/openssl1.1.0

but neither of them will compile nginx.

Any help would be great.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 191
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready