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

brew install xz的时候提示 deny_network_access。 #154

Open
WuJieFly opened this issue Dec 8, 2024 · 4 comments
Open

brew install xz的时候提示 deny_network_access。 #154

WuJieFly opened this issue Dec 8, 2024 · 4 comments

Comments

@WuJieFly
Copy link

WuJieFly commented Dec 8, 2024

环境信息:
mac m1
os big sur 11.3
743ec0a46654afe22d5ecbe5c3c712c251857d3548c15adcb69345--xz.rb
Error: xz: undefined method `deny_network_access!' for Formulary::FormulaNamespace7ca23d67df04b730c79d07186c0edad6::Xz:Class

如何解决这个 错误?

@tarunKakani
Copy link

Hi , I also had the same issue but mine worked after I ran:

brew cleanup
brew install xz --force

if this doesn't work for you or you don't want to install with --force you could :

I hope it helps.

@thesamesam
Copy link
Member

This sounds like a Homebrew packaging issue to me, I'm afraid.

@thesamesam
Copy link
Member

cc @carlocab -- any idea?

@carlocab
Copy link

It seems like the version of brew that you're using is too old for the xz formula (package definition) that you want to install.

Try doing brew update. If that doesn't help, paste the output of brew config and brew doctor here.

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

4 participants