denji / homebrew-nginx

:fire_engine: Community NGINX tap for custom modules

Home Page:https://denji.github.io/homebrew-nginx/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`brew install nginx-full --with-njs-module` fail

xiaoxiangmoe opened this issue · comments

Indicate troubleshooting steps taken

  • Ran brew update and retried your prior step?
  • Ran brew doctor, fixed as many issues as possible and retried your prior step?
  • Checked that a similar issue hasn't already been filed?
  • Looked up the software bug tracker if reporting a build error?
  • If you're seeing permission errors tried running sudo chown -R $(whoami) $(brew --prefix)?

running sudo chown -R $(whoami) $(brew --prefix) fail. But it works when I run sudo chown -R $(whoami) $(brew --prefix)/*

Bug reports / build errors:

> brew install nginx-full --with-njs-module 
==> Downloading https://nginx.org/download/nginx-1.19.10.tar.gz
Already downloaded: /Users/zhaojinxiang/Library/Caches/Homebrew/downloads/89ecedcb2cec8851d21199e84277209b4e2d038929ca3b0e9aa38810e7e96bb5--nginx-1.19.10.tar.gz
==> Installing nginx-full from denji/nginx
==> ./configure --prefix=/usr/local/Cellar/nginx-full/1.19.10 --with-http_ssl_module --with-pcre --wit
==> make install
Last 15 lines from /Users/zhaojinxiang/Library/Logs/Homebrew/nginx-full/02.make:
rm: build/src/njs_vmcode.dep: Operation not permitted
rm: build/src/njs_async.o: Operation not permitted
rm: build/src/njs_trace.o: Operation not permitted
rm: build/src/njs_builtin.o: Operation not permitted
rm: build/src/njs_extern.dep: Operation not permitted
rm: build/src/njs_encoding.dep: Operation not permitted
rm: build/src/njs_lvlhsh.o: Operation not permitted
rm: build/src/njs_typed_array.dep: Operation not permitted
rm: build/src: Operation not permitted
rm: build: Operation not permitted
rm: Makefile: Operation not permitted
make[2]: *** [clean] Error 1
make[1]: *** [/usr/local/share/njs-nginx-module/nginx/../build/libnjs.a] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [install] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/denji/homebrew-nginx/issues

These open issues may also help:
`brew install nginx-full --with-lua-module` fails https://github.com/denji/homebrew-nginx/issues/407
Brew install nginx-full --with-rtmp-module brew install nginx-full --with-rtmp-module https://github.com/denji/homebrew-nginx/issues/382
mv: nginx.xsc: No such file or directory while installing nginx-full --with-perl https://github.com/denji/homebrew-nginx/issues/361
`cp: /usr/local/etc/nginx/koi-win: Operation not permitted` installing nginx-full https://github.com/denji/homebrew-nginx/issues/359
building nginx-full with healthcheck module giving error https://github.com/denji/homebrew-nginx/issues/263
Compiler error when installing nginx-full ---with-upload-module https://github.com/denji/homebrew-nginx/issues/304

Brief summary of issue:

The complete command that you issued:

brew install nginx-full --with-njs-module 

Gist with output of brew doctor:

https://gist.github.com/xiaoxiangmoe/84e90ac2a4670c103dfdef58e560385b

Link output by brew gist-logs <formula>:

brew gist-logs nginx-full

Output of brew config:

HOMEBREW_VERSION: 3.4.0
ORIGIN: https://github.com/Homebrew/brew
HEAD: ffc76654da12fba7d34d078fd9bf681fef65921e
Last commit: 2 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 708ad69a3b6b48b824cbcc0d6ad811e278aa1805
Core tap last commit: 76 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_CORE_GIT_REMOTE: https://github.com/Homebrew/homebrew-core
HOMEBREW_MAKE_JOBS: 12
Homebrew Ruby: 2.6.8 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: dodeca-core 64-bit kabylake
Clang: 13.0.0 build 1300
Git: 2.32.0 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.77.0 => /usr/bin/curl
macOS: 12.1-x86_64
CLT: 13.2.0.0.1.1638488800
Xcode: N/A

Formula Requests:

The quickest way to get a new formula into Homebrew is to file a Pull Request.

We will consider your request but it may be closed if it's something we're not actively planning to work on.

Same issue here. What OS/CPU are you using @xiaoxiangmoe ?

Apple M1 Pro
System Version: macOS 12.0 (21A344)
Kernel Version: Darwin 21.0.1

macOS 12.2.1
2.6 GHz 6-Core Intel Core i7