hgrep: Homebrew not working

❯ brew tap "rhysd/hgrep" "https://github.com/rhysd/hgrep"
brew install hgrep
==> Downloading https://github.com/rhysd/hgrep/releases/download/v0.2.1/hgrep-v0.2.1-x86_64-apple-darwin.zip
Already downloaded: /Users/$USER/Library/Caches/Homebrew/downloads/712103ea480f4147dde712234225835a35bc2a2213180120913b81329051bd47--hgrep-v0.2.1-x86_64-apple-darwin.zip
==> Installing hgrep from rhysd/hgrep
Error: Failure while executing; `/Users/$USER/homebrew/Cellar/hgrep/0.2.1/bin/hgrep --generate-completion-script zsh` was terminated by uncaught signal ABRT. Here's the output:
❯ /Users/$USER/homebrew/Cellar/hgrep/0.2.1/bin/hgrep --generate-completion-script zsh
zsh: no such file or directory: /Users/$USER/homebrew/Cellar/hgrep/0.2.1/bin/hgrep

Don’t think it is related to OS, but if you need I will share.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (10 by maintainers)

Commits related to this issue

Most upvoted comments

Thank you for letting me know. I didn’t notice this because I didn’t install Homebrew in user-local. I’ll check this when I have time.

https://github.com/drduh/macOS-Security-and-Privacy-Guide

I did at first, but then I came upon this awesome repo explaining why I should not. Feel free to follow if you have time.

I changed to link pcre2 statically on building release binaries. The dynamic link issue should be solved at the next release.

Thank you for letting me know. I didn’t notice this because I didn’t install Homebrew in user-local. I’ll check this when I have time.

I see. Yes, it’s another issue. Since the binary was built in macOS worker on GitHub Actions and Homebrew is installed system-global there.

In your case, installing hgrep via cargo would be easier if you have installed Rust toolchain. It installs softwares by building from sources so it should not cause this kind of issues.

cargo install hgrep