MethodDeprecatedError: Calling ENV.userpaths! is disabled! There is no replacement.
guunergooner opened this issue · 1 comments
guunergooner commented
/bug
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-rtmp-module
Report error log
➜ ~ brew install nginx-full --with-rtmp-module
==> Installing nginx-full from denji/nginx
==> Downloading https://nginx.org/download/nginx-1.19.6.tar.gz
Already downloaded: /Users/gooner/Library/Caches/Homebrew/downloads/190bc121d15c92c3b4db3ff3c9da945526f40f5174fa5e6fa629f37ff9156aa3--nginx-1.19.6.tar.gz
Error: An exception occurred within a child process:
MethodDeprecatedError: Calling ENV.userpaths! is disabled! There is no replacement.
Brief summary of issue:
The complete command that you issued:
brew tap denji/nginx
brew install nginx-full --with-rtmp-module
Gist with output of brew doctor
:
Link output by brew gist-logs <formula>
:
Output of brew config
:
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.
Issue avoidance
Comment out /usr/local/Homebrew/Library/Taps/denji/homebrew-nginx/Formula/nginx-full.rb line:176 env: userpaths and reinstall ok
➜ ~ vim /usr/local/Homebrew/Library/Taps/denji/homebrew-nginx/Formula/nginx-full.rb
➜ ~ brew install nginx-full --with-rtmp-module
==> Installing nginx-full from denji/nginx
==> Downloading https://nginx.org/download/nginx-1.19.6.tar.gz
Already downloaded: /Users/gooner/Library/Caches/Homebrew/downloads/190bc121d15c92c3b4db3ff3c9da945526f40f5174fa5e6fa629f37ff9156aa3--nginx-1.19.6.tar.gz
==> ./configure --prefix=/usr/local/Cellar/nginx-full/1.19.6 --with-http_ssl_module --with-pcre --with-ipv6 --sbin-path=/usr/local/Cellar/nginx-full/1
==> make install
==> Caveats
Docroot is: /usr/local/var/www
The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that
nginx can run without sudo.
nginx will load all files in /usr/local/etc/nginx/servers/.
- Tips -
Run port 80:
$ sudo chown root:wheel /usr/local/opt/nginx-full/bin/nginx
$ sudo chmod u+s /usr/local/opt/nginx-full/bin/nginx
Reload config:
$ nginx -s reload
Reopen Logfile:
$ nginx -s reopen
Stop process:
$ nginx -s stop
Waiting on exit process
$ nginx -s quit
To have launchd start denji/nginx/nginx-full now and restart at login:
brew services start denji/nginx/nginx-full
Or, if you don't want/need a background service you can just run:
nginx
==> Summary
🍺 /usr/local/Cellar/nginx-full/1.19.6: 8 files, 1.3MB, built in 38 seconds
craig-helpshift commented
I ran into this issue too with the --with-headers-more-module.
The workaround worked for me thanks!!