求助!!!macOS无法编译nginx
adding module in ../redis-nginx-module-0.3.9+ ngx_http_redis_module was configured
adding module in ../rds-json-nginx-module-0.16
+ ngx_http_rds_json_filter_module was configured
adding module in ../rds-csv-nginx-module-0.09
+ ngx_http_rds_csv_filter_module was configured
adding module in ../ngx_stream_lua-0.0.14
checking for LuaJIT library in /Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/luajit-root/Volumes/DevHD/MdServer/server/openresty/luajit/lib and /Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/luajit-root/Volumes/DevHD/MdServer/server/openresty/luajit/include/luajit-2.1 (specified by the LUAJIT_LIB and LUAJIT_INC env, with -ldl) ... found
adding extra linking options needed by LuaJIT on x86_64
checking for LuaJIT 2.x ... found
checking for Lua language 5.1 ... found
checking for LuaJIT has FFI ... found
checking for export symbols by default (-E) ... not found
checking for export symbols by default (--export-all-symbols) ... not found
checking for SO_PASSCRED ... not found
checking for SA_RESTART ... found
checking for require defined symbols (-u) ... found
+ ngx_stream_lua_module was configured
checking for zlib library ... found
creating objs/Makefile
Configuration summary
+ using PCRE library: /Volumes/DevHD/MdServer/server/source/openresty/pcre-8.38
+ using OpenSSL library: /Volumes/DevHD/MdServer/server/source/openresty/openssl-1.1.1p
+ using system zlib library
nginx path prefix: "/Volumes/DevHD/MdServer/server/openresty/nginx"
nginx binary file: "/Volumes/DevHD/MdServer/server/openresty/nginx/sbin/nginx"
nginx modules path: "/Volumes/DevHD/MdServer/server/openresty/nginx/modules"
nginx configuration prefix: "/Volumes/DevHD/MdServer/server/openresty/nginx/conf"
nginx configuration file: "/Volumes/DevHD/MdServer/server/openresty/nginx/conf/nginx.conf"
nginx pid file: "/Volumes/DevHD/MdServer/server/openresty/nginx/logs/nginx.pid"
nginx error log file: "/Volumes/DevHD/MdServer/server/openresty/nginx/logs/error.log"
nginx http access log file: "/Volumes/DevHD/MdServer/server/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"
cd ../..
Type the following commands to build and install:
gmake
gmake install
++ which gmake
+ CMD_MAKE=/usr/local/bin/gmake
+ '[' 0 == 0 ']'
+ gmake -j1
cd /Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/LuaJIT-2.1-20231117.1 && gmake TARGET_STRIP=@: CCDEBUG=-g XCFLAGS='-DLUAJIT_ENABLE_LUA52COMPAT -fno-stack-check' CC=cc MACOSX_DEPLOYMENT_TARGET='11.7' PREFIX=/Volumes/DevHD/MdServer/server/openresty/luajit
gmake: Entering directory '/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/LuaJIT-2.1-20231117.1'
==== Building LuaJIT 2.1 ====
gmake -C src
gmake: Entering directory '/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/LuaJIT-2.1-20231117.1/src'
gmake: Nothing to be done for 'default'.
gmake: Leaving directory '/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/LuaJIT-2.1-20231117.1/src'
==== Successfully built LuaJIT 2.1 ====
gmake: Leaving directory '/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/LuaJIT-2.1-20231117.1'
cd /Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/lua-cjson-2.1.0.13 && gmake DESTDIR= LUA_INCLUDE_DIR=/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/luajit-root/Volumes/DevHD/MdServer/server/openresty/luajit/include/luajit-2.1 LUA_CMODULE_DIR=/Volumes/DevHD/MdServer/server/openresty/lualib LUA_MODULE_DIR=/Volumes/DevHD/MdServer/server/openresty/lualib CJSON_CFLAGS="-g -fpic" CJSON_LDFLAGS='-bundle -undefined dynamic_lookup' CC=cc
gmake: Entering directory '/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/lua-cjson-2.1.0.13'
cc -c -O3 -Wall -pedantic -DNDEBUG -g -I/usr/local/opt/bzip2/include -I/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/luajit-root/Volumes/DevHD/MdServer/server/openresty/luajit/include/luajit-2.1 -g -fpic -o lua_cjson.o lua_cjson.c
cc -c -O3 -Wall -pedantic -DNDEBUG -g -I/usr/local/opt/bzip2/include -I/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/luajit-root/Volumes/DevHD/MdServer/server/openresty/luajit/include/luajit-2.1 -g -fpic -o strbuf.o strbuf.c
cc -c -O3 -Wall -pedantic -DNDEBUG -g -I/usr/local/opt/bzip2/include -I/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/luajit-root/Volumes/DevHD/MdServer/server/openresty/luajit/include/luajit-2.1 -g -fpic -o fpconv.o fpconv.c
cc -L/usr/local/opt/bzip2/lib -bundle -undefined dynamic_lookup -o cjson.so lua_cjson.o strbuf.o fpconv.o
gmake: Leaving directory '/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/lua-cjson-2.1.0.13'
cd /Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/lua-resty-signal-0.03 && gmake DESTDIR= LUA_INCLUDE_DIR=/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/luajit-root/Volumes/DevHD/MdServer/server/openresty/luajit/include/luajit-2.1 LUA_LIB_DIR=/Volumes/DevHD/MdServer/server/openresty/lualib LDFLAGS='-bundle -undefined dynamic_lookup' CC=cc
gmake: Entering directory '/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/lua-resty-signal-0.03'
cc -O3 -g -Wall -fpic -c resty_signal.c
cc -bundle -undefined dynamic_lookup -fvisibility=hidden resty_signal.o -o librestysignal.so
gmake: Leaving directory '/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/lua-resty-signal-0.03'
cd /Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/lua-redis-parser-0.13 && gmake DESTDIR= LUA_INCLUDE_DIR=/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/luajit-root/Volumes/DevHD/MdServer/server/openresty/luajit/include/luajit-2.1 LUA_LIB_DIR=/Volumes/DevHD/MdServer/server/openresty/lualib LDFLAGS='-bundle -undefined dynamic_lookup' CC=cc
gmake: Entering directory '/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/lua-redis-parser-0.13'
cc -c -g -O -Wall -fpic -I/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/luajit-root/Volumes/DevHD/MdServer/server/openresty/luajit/include/luajit-2.1 -I/usr/local/opt/bzip2/include-o redis-parser.o redis-parser.c
cc -bundle -undefined dynamic_lookup -o parser.so redis-parser.o
gmake: Leaving directory '/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/lua-redis-parser-0.13'
cd /Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/lua-rds-parser-0.06 && gmake DESTDIR= LUA_INCLUDE_DIR=/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/luajit-root/Volumes/DevHD/MdServer/server/openresty/luajit/include/luajit-2.1 LUA_LIB_DIR=/Volumes/DevHD/MdServer/server/openresty/lualib LDFLAGS='-bundle -undefined dynamic_lookup' CC=cc
gmake: Entering directory '/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/lua-rds-parser-0.06'
cc -c -g -O -Wall -fpic -I/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/luajit-root/Volumes/DevHD/MdServer/server/openresty/luajit/include/luajit-2.1 -I/usr/local/opt/bzip2/include-o src/rds_parser.o src/rds_parser.c
cc -bundle -undefined dynamic_lookup -o parser.so src/rds_parser.o
gmake: Leaving directory '/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/lua-rds-parser-0.06'
cd /Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/nginx-1.25.3 && gmake
gmake: Entering directory '/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/nginx-1.25.3'
gmake -f objs/Makefile
gmake: Entering directory '/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/nginx-1.25.3'
cd /Volumes/DevHD/MdServer/server/source/openresty/pcre-8.38 \
&& if [ -f Makefile ]; then gmake distclean; fi \
&& CC="cc" CFLAGS="-g -pipe" \
./configure --disable-shared
/bin/sh: line 0: cd: /Volumes/DevHD/MdServer/server/source/openresty/pcre-8.38: No such file or directory
gmake: *** Error 1
gmake: Leaving directory '/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/nginx-1.25.3'
gmake: *** Error 2
gmake: Leaving directory '/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/nginx-1.25.3'
gmake: *** Error 2
+ '[' -d /Volumes/DevHD/MdServer/server/source/openresty/pcre-8.38 ']'
+ '[' -d /Volumes/DevHD/MdServer/server/source/openresty/openssl-1.1.1p ']'
+ rm -rf /Volumes/DevHD/MdServer/server/source/openresty/openssl-1.1.1p
+ '[' -d /Volumes/DevHD/MdServer/server/source/openresty/libressl-3.9.1 ']'
+ rm -rf /Volumes/DevHD/MdServer/server/source/openresty/libressl-3.9.1
+ echo $'\211\205\214\210\220'
安装完成
页:
[1]