14

I'm having trouble finding out what to do with this error... here's the full message:

MacBook-Pro ~ % brew unlink [email protected] && brew link --force --overwrite [email protected]
Unlinking /usr/local/Cellar/[email protected]/7.4.16... 0 symlinks removed.
Warning: Already linked: /usr/local/Cellar/[email protected]/5.6.40
To relink:
  brew unlink [email protected] && brew link --force [email protected]
MacBook-Pro ~ % brew unlink [email protected] && brew link --force [email protected]  
Unlinking /usr/local/Cellar/[email protected]/5.6.40... 25 symlinks removed.
Warning: Calling `sha256 "digest" => :tag` in a bottle block is deprecated! Use `brew style --fix` on the formula to update the style or use `sha256 tag: "digest"` instead.
Please report this issue to the exolnet/deprecated tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/exolnet/homebrew-deprecated/Formula/[email protected]:10

Warning: Calling `sha256 "digest" => :tag` in a bottle block is deprecated! Use `brew style --fix` on the formula to update the style or use `sha256 tag: "digest"` instead.
Please report this issue to the exolnet/deprecated tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/exolnet/homebrew-deprecated/Formula/[email protected]:10

Linking /usr/local/Cellar/[email protected]/5.6.40... 25 symlinks created.

I'm unsure of what "Calling sha256 "digest" => :tag in a bottle block" means in relation to Homebrew or exolnet, and trying to run brew style --fix [email protected] seems like it fixes a bunch of stuff but then I just get the same errors running unlink/link again, and eXolnet's GitHub is archived so I don't get the Open new Issue button... so I'm not sure where I'm supposed to report the issue.

I'm on macOS Catalina 10.15.7, on a MacBook Pro 2019, and I just updated Homebrew yesterday (it auto-updates anyway) to version 3.0.11-156-gbf79e3d.

Trying to Google search this gives Ruby answers or seemingly unrelated things, and I'm not familiar with Ruby nor those other things... I can't tell if the warnings are a red herring or what, and I'm not sure where to post about it. I can't even tell if I should even deal with these errors...

I simply need PHP 5.6, 7.3, and 7.4 running on my "new" Mac Catalina install (and my boss has recommended against Big Sur right now).

1
  • PS I don't know why some text is being colored orange in the code block... also, I had to wrap the "Calling" error in double-quotes because using tic (`) screws up the text display even worse.
    – SteveExdia
    Apr 12, 2021 at 13:54

2 Answers 2

13

Try to run:

brew style --fix /usr/local/Homebrew/Library/Taps/exolnet/homebrew-deprecated/Formula

I am not familiar with ruby too, but it fixed

3
  • Works for me as well.
    – biplob
    Apr 26, 2021 at 6:44
  • It showed [Corrected] for PHP 7.0 and 7.1, which were the last ones I got the errors from, and I uninstalled brew PHP 5.6 recently so there were no errors or corrections there, so it appears to have worked.
    – SteveExdia
    May 3, 2021 at 15:47
  • 1
    For me, this resulted in the error, "Error: No such file or directory @ realpath_rec - /usr/local/Homebrew/Library/Taps/exolnet"
    – Dave
    Sep 7, 2021 at 13:43
5

Maybe you should try brew update-reset to fix it , it works to me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.