I want to build a Nginx RTMP server. I am using https://github.com/arut/nginx-rtmp-module to build it. I am working on MacOS.
Following are my build steps:
- wget http://nginx.org/download/nginx-1.12.1.tar.gz
- tar -zxvf nginx-1.12.1.tar.gz
- wget https://github.com/arut/nginx-rtmp-module/archive/master.zip
- unzip master.zip
- cd nginx-1.12.1
- ./configure --add-module=../nginx-rtmp-module-master
Till here everything is working smooth
Now when I run 'make' command, it raises following errors:
Undefined symbols for architecture x86_64:
"_SSL_CIPHER_find", referenced from:
_ngx_ssl_get_ciphers in ngx_event_openssl.o
"_X509_check_host", referenced from:
_ngx_ssl_check_host in ngx_event_openssl.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [objs/nginx] Error 1
make: *** [build] Error 2
I have gone through many posts regarding this behaviour and all I found was that this issue may be related to openssl path
If I try to print the openssl path
$ which openssl
/usr/local/opt/openssl/bin/openssl
I have used homebrew to install openssl.
Can anyone give me right direction to proceed further ?