From aff80a400162f943904565a4c2b44f85efd7f3ab Mon Sep 17 00:00:00 2001 From: Mark Date: Sun, 7 Aug 2016 03:32:31 +0300 Subject: [PATCH 1/2] Fix pcre-8.37 Not found ``` wget -O pcre.tar.gz http://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.37.tar.gz --2016-08-06 20:22:46-- http://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.37.tar.gz Resolving ftp.csx.cam.ac.uk (ftp.csx.cam.ac.uk)... 131.111.8.115 Connecting to ftp.csx.cam.ac.uk (ftp.csx.cam.ac.uk)|131.111.8.115|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2016-08-06 20:22:47 ERROR 404: Not Found. make: *** [pcre.tar.gz] Error 8 ``` --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e2db0b4..ec31cc3 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ NGINX_SOURCE=http://nginx.org/download/nginx-1.9.2.tar.gz # URL of OpenSSL source tarball OPENSSL_SOURCE=http://www.openssl.org/source/openssl-1.0.1p.tar.gz # URL of PCRE source tarball -PCRE_SOURCE=http://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.37.tar.gz +PCRE_SOURCE=http://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.39.tar.gz all: nginx/nginx From c8c773abd2628e3aefb10bb0a340a1cb91fbdd38 Mon Sep 17 00:00:00 2001 From: Mark Date: Sun, 7 Aug 2016 04:25:58 +0300 Subject: [PATCH 2/2] Fix /usr/bin/ld --with-ld-opt="-static" not found Fix error with /usr/bin/ld ``` checking for OS + Linux 3.10.0-327.el7.x86_64 x86_64 checking for C compiler ... found + using GNU C compiler + gcc version: 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) checking for gcc -pipe switch ... found checking for --with-ld-opt="-static" ... not found ./configure: error: the invalid value in --with-ld-opt="-static" make: *** [nginx/nginx] Error 1 ``` --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ec31cc3..7364b79 100644 --- a/Makefile +++ b/Makefile @@ -80,7 +80,7 @@ nginx: mkdir -p $@ nginx/nginx: nginx pcre .nginx-patched .openssl-patched - cd src && ./configure --with-cc-opt=-static --with-ld-opt=-static \ + cd src && ./configure --with-cc-opt=-Bstatic --with-ld-opt=-Bstatic \ --with-cpu-opt=generic --with-pcre=../pcre --with-mail \ --with-ipv6 --with-poll_module --with-select_module \ --with-select_module --with-poll_module --with-http_ssl_module \