bluecityparty / Nginx-Proxy-Server-Project

Error on Lua jit
0 stars 0 forks source link

Nginx Proxy server - Checking Lua Library ... not Found #1

Open bluecityparty opened 6 years ago

bluecityparty commented 6 years ago

Hi, I'm trying to create an nginx proxy server and successfully installed openresty version openresty-1.13.6.1. but when I run this code, it says. below the code I used. Anyone who can help me.

Error:

checking for Lua library ... not found checking for Lua library in /usr/local/ ... not found checking for Lua library in /usr/local/ ... not found checking for Lua library in /usr/pkg/ ... not found checking for Lua library in /opt/local/ ... not found checking for Lua library in /usr/local/*/lua51/ ... not found checking for Lua library in /usr/ ... not found checking for LuaJIT library in /usr/local/ ... not found checking for LuaJIT library in /usr/ ... not found checking for LuaJIT library in /usr/ ... not found ./configure: error: ngx_http_lua_module requires the Lua library.

Code:

PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin export PATH

cd /usr/ports/www/nginx make rmconfig

gsed -i '/^OPTIONS_DEFAULT/{N;N;N;N;N;s/.*/OPTIONS_DEFAULT=DSO FILE_AIO GOOGLE_PERFTOOLS HTTP HTTP_CACHE \\ HTTP_GEOIP HTTP_GZIP_STATIC HTTP_PERL HTTP_REALIP HTTP_REWRITE \\ HTTP_SSL SET_MISC HTTP_STATUS HTTP_SUB HTTPV2 STREAM \\ STREAM_SSL WWW LUA MEMC CACHE_PURGE ECHO \\ HTTP_UPSTREAM_CHECK HTTP_UPSTREAM_STICKY SRCACHE \n/}' Makefile

make -DBATCH install clean

pkg install -y git

if [ ! -d "/home/OpenResty" ]; then mkdir /home/OpenResty fi

cd /home/Software wget https://openresty.org/download/openresty-1.13.6.1.tar.gz --no-check-certificate tar -xzvf openresty-1.13.6.1.tar.gz

wget -N http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz gunzip -d GeoLiteCity.dat.gz

wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz gunzip GeoIP.dat.gz

wget http://labs.frickle.com/files/ngx_cache_purge-2.3.tar.gz tar -xzvf ngx_cache_purge-2.3.tar.gz

git clone https://github.com/replay/ngx_http_lower_upper_case.git git clone https://github.com/yaoweibin/nginx_upstream_check_module.git git clone https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng.git git clone https://github.com/kennon/ngx_http_status_code_counter.git git clone https://github.com/zls0424/ngx_req_status.git git clone https://github.com/magicbear/ngx_realtime_request_module.git

cp -r nginx_upstream_check_module/ /home/OpenResty/nginx_upstream_check_module cp -r ngx_http_lower_upper_case/ /home/OpenResty/ngx_http_lower_upper cp -r ngx_cache_purge-2.3 /home/OpenResty/ngx_cache_purge cp -r nginx-sticky-module-ng/ /home/OpenResty/nginx-sticky-module cp -r ngx_http_status_code_counter/ /home/OpenResty/ngx_http_status_code_counter cp -r ngx_req_status/ /home/OpenResty/ngx_req_status cp -r ngx_realtime_request_module /home/OpenResty/ngx_realtime_request_module

cd openresty-1.13.6.1 cp -r bundle/nginx-/ /home/OpenResty/nginx cp -r bundle/memc-nginx-module-/ /home/OpenResty/memc-nginx-module cp -r bundle/ngx_lua-/ /home/OpenResty/ngx_lua cp -r bundle/ngx_devel_kit-/ /home/OpenResty/ngx_devel_kit cp -r bundle/set-misc-nginx-module-/ /home/OpenResty/set-misc-nginx-module cp -r bundle/srcache-nginx-module-/ /home/OpenResty/srcache-nginx-module

chmod +x /home/OpenResty/nginx/configure cd /home/OpenResty/nginx patch -p0 </home/OpenResty/nginx_upstream_check_module/check_1.9.2+.patch patch -p1 </home/OpenResty/ngx_req_status/write_filter-1.7.11.patch

./configure \ --prefix=/usr/local/etc/nginx \ --conf-path=/usr/local/etc/nginx/nginx.conf \ --sbin-path=/usr/local/sbin/nginx \ --pid-path=/var/run/nginx.pid \ --lock-path=/var/lock/nginx.lock \ --error-log-path=/var/log/nginx-error.log \ --http-log-path=/var/log/nginx-access.log \ --user=www \ --group=www \ --http-client-body-temp-path=/var/tmp/nginx/client_body_temp \ --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp \ --http-proxy-temp-path=/var/tmp/nginx/proxy_temp \ --http-scgi-temp-path=/var/tmp/nginx/scgi_temp \ --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp \ --with-cc-opt='-I /usr/local/include' \ --with-ld-opt='-L /usr/local/lib' \ --with-file-aio \ --with-google_perftools_module \ --with-ipv6 \ --with-pcre \ --with-http_dav_module \ --with-http_gzip_static_module \ --with-http_realip_module \ --with-http_stub_status_module \ --with-http_sub_module \ --with-http_ssl_module \ --with-http_v2_module \ --add-module=/home/OpenResty/ngx_cache_purge \ --add-module=/home/OpenResty/ngx_devel_kit \ --add-module=/home/OpenResty/nginx-sticky-module \ --add-module=/home/OpenResty/ngx_http_lower_upper \ --add-module=/home/OpenResty/memc-nginx-module \ --add-module=/home/OpenResty/srcache-nginx-module \ --add-module=/home/OpenResty/nginx_upstream_check_module \ --add-module=/home/OpenResty/ngx_http_status_code_counter \ --add-module=/home/OpenResty/ngx_req_status \ --add-module=/home/OpenResty/ngx_realtime_request_module \ --modules-path=/usr/local/libexec/nginx \ --with-stream=dynamic \ --with-http_perl_module=dynamic \ --with-http_geoip_module=dynamic \ --add-dynamic-module=/home/OpenResty/set-misc-nginx-module \ --add-dynamic-module=/home/OpenResty/ngx_lua

bluecityparty commented 6 years ago

proxy server error 1