找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 172|回复: 0

求助!!!macOS无法编译nginx

[复制链接]

1

主题

0

回帖

21

积分

新手上路

积分
21
发表于 2024-9-6 11:36:15 | 显示全部楼层 |阅读模式
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[1]: 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[2]: Entering directory '/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/LuaJIT-2.1-20231117.1/src'
gmake[2]: Nothing to be done for 'default'.
gmake[2]: 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[1]: 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[1]: 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[1]: 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[1]: 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[1]: 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[1]: 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[1]: 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[1]: 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[1]: 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[1]: Entering directory '/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/nginx-1.25.3'
gmake -f objs/Makefile
gmake[2]: 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[2]: *** [objs/Makefile:3403: /Volumes/DevHD/MdServer/server/source/openresty/pcre-8.38/Makefile] Error 1
gmake[2]: Leaving directory '/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/nginx-1.25.3'
gmake[1]: *** [Makefile:10: build] Error 2
gmake[1]: Leaving directory '/Volumes/DevHD/MdServer/server/source/openresty/openresty-1.25.3.2/build/nginx-1.25.3'
gmake: *** [Makefile:10: all] 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'
安装完成

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

| Archiver|手机版|小黑屋|MW面板

GMT+8, 2024-12-22 09:23 , Processed in 0.018610 second(s), 18 queries .

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

快速回复 返回顶部 返回列表