Open ningkexin opened 1 week ago
@ningkexin Sorry, can not reproduce this issue.
@zhuizhuhaomeng
==> perl ./Configure --prefix=/opt/homebrew/Cellar/openresty-openssl3/3.0.15_1 --openssldir=/opt/homebrew/etc/op
==> make
==> make install MANDIR=/opt/homebrew/Cellar/openresty-openssl3/3.0.15_1/share/man MANSUFFIX=ssl
🍺 /opt/homebrew/Cellar/openresty-openssl3/3.0.15_1: 6,554 files, 28.3MB, built in 55 seconds
==> Installing openresty/brew/openresty
==> ./configure -j12 --pid-path=/opt/homebrew/var/run/openresty.pid --lock-path=/opt/homebrew/var/run/openresty.
Last 15 lines from /Users/ning/Library/Logs/Homebrew/openresty/01.configure:
checking for SA_RESTART ... found
+ ngx_stream_lua_module was configured
checking for PCRE2 library ... found
checking for OpenSSL library ... found
checking for zlib library ... found
checking for GeoIP library ... not found
checking for GeoIP library in /usr/local/ ... not found
checking for GeoIP library in /usr/pkg/ ... not found
checking for GeoIP library in /opt/local/ ... not found
checking for GeoIP library in /opt/homebrew/ ... not found
./configure: error: the GeoIP module requires the GeoIP library.
You can either do not enable the module or install the library.
ERROR: failed to run command: sh ./configure --prefix=/opt/homebrew/Cellar/openresty/1.27.1.1_1/nginx \...
If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
https://github.com/openresty/homebrew-brew/issues
These open issues may also help:
homeBrew update 1.27 Error [1] 40929 segmentation fault openresty https://github.com/openresty/homebrew-brew/issues/44
Openresty dies with `terminated by signal SIGSEGV` after upgrade to 1.25.3.2 https://github.com/openresty/homebrew-brew/issues/42
The openresty-debug package should use openresty-openssl-debug instead https://github.com/openresty/homebrew-brew/issues/3
Fails to install OpenResty https://github.com/openresty/homebrew-brew/issues/5
brew install geoip
fixed,still error:# test
/opt/homebrew/opt/openresty/bin/openresty -g daemon\ off\;
[1] 49557 segmentation fault /opt/homebrew/opt/openresty/bin/openresty -g daemon\ off\;
# test
openresty
[1] 60543 segmentation fault openresty
# build info
$ openresty -V
nginx version: openresty/1.27.1.1
built by clang 16.0.0 (clang-1600.0.26.3)
built with OpenSSL 3.0.15 3 Sep 2024
TLS SNI support enabled
configure arguments: --prefix=/opt/homebrew/Cellar/openresty/1.27.1.1_1/nginx --with-cc-opt='-O2 -I/opt/homebrew/include -I/opt/homebrew/opt/pcre2/include -I/opt/homebrew/opt/openresty-openssl3/include' --add-module=../ngx_devel_kit-0.3.3 --add-module=../echo-nginx-module-0.63 --add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2 --add-module=../set-misc-nginx-module-0.33 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.09 --add-module=../srcache-nginx-module-0.33 --add-module=../ngx_lua-0.10.27 --add-module=../ngx_lua_upstream-0.07 --add-module=../headers-more-nginx-module-0.37 --add-module=../array-var-nginx-module-0.06 --add-module=../memc-nginx-module-0.20 --add-module=../redis2-nginx-module-0.15 --add-module=../redis-nginx-module-0.3.9 --add-module=../ngx_stream_lua-0.0.15 --with-ld-opt='-Wl,-rpath,/opt/homebrew/Cellar/openresty/1.27.1.1_1/luajit/lib -L/opt/homebrew/lib -L/opt/homebrew/opt/pcre2/lib -L/opt/homebrew/opt/openresty-openssl3/lib' --pid-path=/opt/homebrew/var/run/openresty.pid --lock-path=/opt/homebrew/var/run/openresty.lock --conf-path=/opt/homebrew/etc/openresty/nginx.conf --http-log-path=/opt/homebrew/var/log/nginx/access.log --error-log-path=/opt/homebrew/var/log/nginx/error.log --with-pcre-jit --with-ipv6 --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-http_v2_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-http_stub_status_module --with-http_realip_module --with-http_addition_module --with-http_auth_request_module --with-http_secure_link_module --with-http_random_index_module --with-http_geoip_module --with-http_gzip_static_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-threads --with-stream --with-http_ssl_module
# brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: Suspicious https://github.com/Homebrew/brew git origin remote found.
The current git origin is:
https://mirrors.ustc.edu.cn/brew.git
With a non-standard origin, Homebrew won't update properly.
You can solve this by setting the origin remote:
git -C "/opt/homebrew" remote set-url origin https://github.com/Homebrew/brew
Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
geoip
lua@5.1
php@7.1
php@7.4
Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
nginx
Warning: /usr/bin occurs before /opt/homebrew/bin in your PATH.
This means that system-provided programs will be used instead of those
provided by Homebrew. Consider setting your PATH so that
/opt/homebrew/bin occurs before /usr/bin. Here is a one-liner:
echo 'export PATH="/opt/homebrew/bin:$PATH"' >> ~/.zshrc
The following tools exist at both paths:
openssl
rsync
sntp
tidy
Warning: Homebrew's "sbin" was not found in your PATH but you have installed
formulae that put executables in /opt/homebrew/sbin.
Consider setting your PATH for example like so:
echo 'export PATH="/opt/homebrew/sbin:$PATH"' >> ~/.zshrc
HOMEBREW_VERSION: 4.4.0
ORIGIN: https://mirrors.ustc.edu.cn/brew.git
HEAD: 84c31175f11860129a9aaed40a13c549625e2db1
Last commit: 13 days ago
Core tap JSON: 14 Oct 05:13 UTC
Core cask tap JSON: 14 Oct 05:13 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_API_DOMAIN: https://mirrors.ustc.edu.cn/homebrew-bottles/api
HOMEBREW_BOTTLE_DOMAIN: https://mirrors.ustc.edu.cn/homebrew-bottles
HOMEBREW_CASK_OPTS: []
HOMEBREW_CORE_GIT_REMOTE: https://mirrors.ustc.edu.cn/homebrew-core.git
HOMEBREW_MAKE_JOBS: 12
Homebrew Ruby: 3.3.5 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.5/bin/ruby
CPU: dodeca-core 64-bit arm_blizzard_avalanche
Clang: 16.0.0 build 1600
Git: 2.39.5 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.0.1-arm64
CLT: 16.0.0.0.1.1724870825
Xcode: 16.0
Rosetta 2: false
I am facing the same issue. How it can be fixed?
Would you please openresty with valgrind? @ningkexin
I am facing the same issue.
@zhuizhuhaomeng Never used it, try this
please don't use sudo to run the command.
@zhuizhuhaomeng valgrind build error is:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... -std=gnu++11
checking dependency style of g++ -std=gnu++11... gcc3
checking for ranlib... ranlib
checking for gcc-ranlib... no
checking for a sed that does not truncate output... /usr/bin/sed
checking for gsha256sum... no
checking for sha256sum... sha256sum
checking for ar... /usr/bin/ar
checking for gcc-ar... no
checking for perl... /usr/bin/perl
checking for gdb... /no/gdb/was/found/at/configure/time
checking dependency style of gcc... gcc3
checking for diff -u... yes
checking for a supported version of gcc... ok (clang-16.0.0)
checking build system type... aarch64-apple-darwin24.0.0
checking host system type... aarch64-apple-darwin24.0.0
checking for a supported CPU... ok (aarch64)
checking for a 64-bit only build... no
checking for a 32-bit only build... no
checking for a supported OS... ok (darwin24.0.0)
checking for the kernel version... unsupported (24.0.0)
configure: error: Valgrind works on Darwin 10.x, 11.x, 12.x, 13.x, 14.x, 15.x, 16.x and 17.x (Mac OS X 10.6/7/8/9/10/11 and macOS 10.12/13)
$ sw_vers
ProductName: macOS
ProductVersion: 15.0.1
BuildVersion: 24A348
Is there any other way?
version is :1.27.1.1_1