Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cp: /usr/local/etc/nginx/koi-win: Operation not permitted installing nginx-full #359

Open
5 tasks done
SandroMachado opened this issue Dec 26, 2018 · 4 comments
Open
5 tasks done

Comments

@SandroMachado
Copy link

SandroMachado commented Dec 26, 2018

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)?

Bug reports / build errors:

❯ brew install nginx-full --with-realip
==> Installing nginx-full from denji/nginx
==> Downloading https://nginx.org/download/nginx-1.15.8.tar.gz
Already downloaded: /Users/sandromachado/Library/Caches/Homebrew/downloads/58d1c431456260ff6b102d21e73f44a3118a03a05331cdfa4427e2eadeaa2871--nginx-1.15.8.tar.gz
==> ./configure --prefix=/usr/local/Cellar/nginx-full/1.15.8 --with-http_ssl_module --with-pcre --with-ipv6 --sbin-path=/usr/local/Cellar/nginx-full/1.15.8/bin/nginx --with-cc-opt=-I/usr/local/include -I/
==> make install
Last 15 lines from /Users/sandromachado/Library/Logs/Homebrew/nginx-full/02.make:
	objs/ngx_modules.o \
	-L/usr/local/lib -L/usr/local/opt/pcre/lib -L/usr/local/opt/openssl/lib -lpcre -lssl -lcrypto -lz
test -d '/usr/local/Cellar/nginx-full/1.15.8' || mkdir -p '/usr/local/Cellar/nginx-full/1.15.8'
test -d '/usr/local/Cellar/nginx-full/1.15.8/bin' \
		|| mkdir -p '/usr/local/Cellar/nginx-full/1.15.8/bin'
test ! -f '/usr/local/Cellar/nginx-full/1.15.8/bin/nginx' \
		|| mv '/usr/local/Cellar/nginx-full/1.15.8/bin/nginx' \
			'/usr/local/Cellar/nginx-full/1.15.8/bin/nginx.old'
cp objs/nginx '/usr/local/Cellar/nginx-full/1.15.8/bin/nginx'
test -d '/usr/local/etc/nginx' \
		|| mkdir -p '/usr/local/etc/nginx'
cp conf/koi-win '/usr/local/etc/nginx'
cp: /usr/local/etc/nginx/koi-win: Operation not permitted
make[1]: *** [install] Error 1
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:
Compiler error when installing nginx-full ---with-upload-module https://github.com/denji/homebrew-nginx/issues/304
building nginx-full with healthcheck module giving error https://github.com/denji/homebrew-nginx/issues/263

Brief summary of issue:

I am trying to install nginx-full and it is not possible due to the following error.

The complete command that you issued:

brew install nginx-full

Gist with output of brew doctor:

❯ brew doctor
Your system is ready to brew.

Output of brew config:

❯ brew config
HOMEBREW_VERSION: 1.8.6
ORIGIN: https://github.com/Homebrew/brew
HEAD: 858c5e1afb0eb00079a4f014e8fbedf9065d50e4
Last commit: 10 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 3ae7e2da47ec276d6d11a6f2eee9fda903835e5f
Core tap last commit: 2 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: --appdir=/Applications
HOMEBREW_VISUAL: vim
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.3.7 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 10.0 build 1000
Git: 2.17.2 => /Applications/Xcode101.app/Contents/Developer/usr/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: 1.8.0_101, 1.7.0_79
macOS: 10.13.6-x86_64
CLT: 10.1.0.0.1.1539992718
Xcode: 10.1 => /Applications/Xcode101.app/Contents/Developer
XQuartz: 2.7.11 => /opt/X11
@denji
Copy link
Owner

denji commented Dec 26, 2018

I was unable to reproduce the error (1.15.7 - 1.15.8).
Why you have non regular user perm. /usr/local/etc/nginx?

$ ls -lha /usr/local/etc/nginx/

@SandroMachado
Copy link
Author

@denji this is the output:

❯ ls -lha /usr/local/etc/nginx/
total 4.0K
drwxr-xr-x 7 sandromachado staff  224 Dec 19 19:19 .
drwxr-xr-x 3 sandromachado staff   96 Oct 16  2015 ..
drwxr-xr-x 4 sandromachado staff  128 Oct 16  2015 conf.d
drwxr-xr-x 8 sandromachado staff  256 Oct 16  2015 sites-available
drwxr-xr-x 5 sandromachado staff  160 Dec 26 14:53 sites-enabled
drwxr-xr-x 9 sandromachado staff  288 Oct 16  2015 ssl
-rw-r--r-- 1 sandromachado staff 1.3K Oct 16  2015 nginx.conf

Any thoughts?

@denji
Copy link
Owner

denji commented Dec 27, 2018

I'll double-check it, but it looks like the error was caused after unpacking the archive and copying nginx-1.15.8.tar.gz/conf/koi-win.

@SandroMachado
Copy link
Author

Please let me know if you need my help for debugging or if you need me to run some commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants