Last active
May 16, 2019 14:30
-
-
Save jay-ouellette/d51337fdd22954eaf4193f9ecbb8215b to your computer and use it in GitHub Desktop.
Build Nginx with OpenSSL from source
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
openssl_version='1.1.1b' | |
openssl_tgz="openssl-${openssl_version}.tar.gz" | |
openssl_src_dir="openssl-${openssl_version}/" | |
nginx_version='1.15.12' | |
nginx_tgz="nginx-${nginx_version}.tar.gz" | |
nginx_src_dir="nginx-${nginx_version}/" | |
echo "Mac OS $(sw_vers -productVersion)" | |
xcodebuild -version | grep Xcode | |
echo "Nginx $nginx_version" | |
echo "OpenSSL $openssl_version" | |
echo "" | |
set -x | |
mkdir nginx | |
pushd nginx | |
curl -sO "https://www.openssl.org/source/${openssl_tgz}" & | |
curl -sO "https://nginx.org/download/${nginx_tgz}" & | |
wait | |
tar -xzf "${openssl_tgz}" | |
tar -xzf "${nginx_tgz}" | |
pushd "${nginx_src_dir}" | |
./configure \ | |
--with-http_ssl_module \ | |
--with-openssl="$(pwd)/../${openssl_src_dir}" \ | |
--prefix="$(pwd)/../nginx-build" | |
make && make install | |
set +x | |
popd | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
build fails on
Mac OS 10.11.6
Xcode 7.3.1
with: