Closed ahsandar closed 6 years ago
I downloaded the latest openresty release and used your configure
and it worked:
vm:~/ngx_http_geoip2_module $ git status
HEAD detached at 3.2
nothing to commit, working directory clean
vm:~/ngx_http_geoip2_module $ cd ../openresty-1.13.6.1/
vm:~/openresty-1.13.6.1 $ ./configure -j2 --prefix=/opt/apps/openresty \
> --without-luajit-lua52 \
> --with-pcre-jit \
> --with-http_ssl_module \
> --with-ipv6 \
> --with-http_realip_module \
> --with-http_stub_status_module \
> --with-stream \
> --add-module=/home/vagrant/ngx_http_geoip2_module
platform: linux (linux)
cp -rp bundle/ build
cd build
cd LuaJIT-2.1-20171103
INFO: found -msse4.2 in cc.
make -j2 TARGET_STRIP=@: CCDEBUG=-g XCFLAGS='-msse4.2' CC=cc PREFIX=/opt/apps/openresty/luajit
==== Building LuaJIT 2.1.0-beta3 ====
make -C src
....
Configuration summary
+ using system PCRE library
+ using system OpenSSL library
+ using system zlib library
nginx path prefix: "/opt/apps/openresty/nginx"
nginx binary file: "/opt/apps/openresty/nginx/sbin/nginx"
nginx modules path: "/opt/apps/openresty/nginx/modules"
nginx configuration prefix: "/opt/apps/openresty/nginx/conf"
nginx configuration file: "/opt/apps/openresty/nginx/conf/nginx.conf"
nginx pid file: "/opt/apps/openresty/nginx/logs/nginx.pid"
nginx error log file: "/opt/apps/openresty/nginx/logs/error.log"
nginx http access log file: "/opt/apps/openresty/nginx/logs/access.log"
nginx http client request body temporary files: "client_body_temp"
nginx http proxy temporary files: "proxy_temp"
nginx http fastcgi temporary files: "fastcgi_temp"
nginx http uwsgi temporary files: "uwsgi_temp"
nginx http scgi temporary files: "scgi_temp"
./configure: warning: the "--with-ipv6" option is deprecated
cd ../..
Type the following commands to build and install:
make
make install
vm:~/openresty-1.13.6.1 $ make -j2 && make install
cd /home/vagrant/openresty-1.13.6.1/build/LuaJIT-2.1-20171103 && make TARGET_STRIP=@: CCDEBUG=-g XCFLAGS='-msse4.2' CC=cc PREFIX=/opt/apps/openresty/luajit
make[1]: Entering directory '/home/vagrant/openresty-1.13.6.1/build/LuaJIT-2.1-20171103'
==== Building LuaJIT 2.1.0-beta3 ====
make -C src
make[2]: Entering directory '/home/vagrant/openresty-1.13.6.1/build/LuaJIT-2.1-20171103/src'
make[2]: Nothing to be done for 'default'.
make[2]: Leaving directory '/home/vagrant/openresty-1.13.6.1/build/LuaJIT-2.1-20171103/src'
==== Successfully built LuaJIT 2.1.0-beta3 ====
....
cc -o objs/nginx \
objs/src/core/nginx.o \
objs/src/core/ngx_log.o \
objs/src/core/ngx_palloc.o \
objs/src/core/ngx_array.o \
objs/src/core/ngx_list.o \
objs/src/core/ngx_hash.o \
objs/src/core/ngx_buf.o \
objs/src/core/ngx_queue.o \
objs/src/core/ngx_output_chain.o \
objs/src/core/ngx_string.o \
objs/src/core/ngx_parse.o \
objs/src/core/ngx_parse_time.o \
objs/src/core/ngx_inet.o \
objs/src/core/ngx_file.o \
....
objs/addon/ngx_http_geoip2_module/ngx_http_geoip2_module.o \
objs/addon/ngx_http_geoip2_module/ngx_stream_geoip2_module.o \
objs/ngx_modules.o \
-L/home/vagrant/openresty-1.13.6.1/build/luajit-root/opt/apps/openresty/luajit/lib -L/home/vagrant/openresty-1.13.6.1/build/luajit-root/opt/apps/openresty/luajit/lib -Wl,-rpath,/opt/apps/openresty/luajit/lib -Wl,-E -Wl,-E -ldl -lpthread -lcrypt -L/home/vagrant/openresty-1.13.6.1/build/luajit-root/opt/apps/openresty/luajit/lib -lluajit-5.1 -lm -ldl -L/home/vagrant/openresty-1.13.6.1/build/luajit-root/opt/apps/openresty/luajit/lib -lluajit-5.1 -lm -ldl -lmaxminddb -lmaxminddb -lpcre -lssl -lcrypto -ldl -lz \
-Wl,-E
make[2]: Leaving directory '/home/vagrant/openresty-1.13.6.1/build/nginx-1.13.6'
make[1]: Leaving directory '/home/vagrant/openresty-1.13.6.1/build/nginx-1.13.6'
....
make[2]: Leaving directory '/home/vagrant/openresty-1.13.6.1/build/nginx-1.13.6'
make[1]: Leaving directory '/home/vagrant/openresty-1.13.6.1/build/nginx-1.13.6'
mkdir -p /opt/apps/openresty/site/lualib /opt/apps/openresty/site/pod /opt/apps/openresty/site/manifest
ln -sf /opt/apps/openresty/nginx/sbin/nginx /opt/apps/openresty/bin/openresty
vm:~/openresty-1.13.6.1 $ cd /opt/apps/openresty/
vm:/opt/apps/openresty $ ./bin/openresty -V
nginx version: openresty/1.13.6.1
built by gcc 4.9.2 (Debian 4.9.2-10+deb8u1)
built with OpenSSL 1.0.1t 3 May 2016
TLS SNI support enabled
configure arguments: --prefix=/opt/apps/openresty/nginx --with-cc-opt=-O2 --add-module=../ngx_devel_kit-0.3.0 --add-module=../echo-nginx-module-0.61 --add-module=../xss-nginx-module-0.05 --add-module=../ngx_coolkit-0.2rc3 --add-module=../set-misc-nginx-module-0.31 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.07 --add-module=../srcache-nginx-module-0.31 --add-module=../ngx_lua-0.10.11 --add-module=../ngx_lua_upstream-0.07 --add-module=../headers-more-nginx-module-0.33 --add-module=../array-var-nginx-module-0.05 --add-module=../memc-nginx-module-0.18 --add-module=../redis2-nginx-module-0.14 --add-module=../redis-nginx-module-0.3.7 --add-module=../rds-json-nginx-module-0.15 --add-module=../rds-csv-nginx-module-0.08 --add-module=../ngx_stream_lua-0.0.3 --with-ld-opt=-Wl,-rpath,/opt/apps/openresty/luajit/lib --with-pcre-jit --with-http_ssl_module --with-ipv6 --with-http_realip_module --with-http_stub_status_module --with-stream --add-module=/home/vagrant/ngx_http_geoip2_module --with-stream --with-stream_ssl_module
vm:/opt/apps/openresty $
The latest update fails the openresty build
BUILD step
OUTPUT exerpt