My homebrew install of ag
fails with:
$ ag
dyld: Library not loaded: /usr/local/lib/libpcre.1.dylib
Referenced from: /usr/local/bin/ag
Reason: image not found
Trace/BPT trap: 5
What do I need to do to fix this?
A Japanese blog post covers what's necessary to fix this. libpcre.1.dylib
is a file provided by the pcre Homebrew package.
The fix for this is to brew uninstall pcre && brew install pcre
. ag
should work after this.
You SHOULD run brew doctor
and follow what they suggested.
Mine is You have unlinked kegs in your Cellar due to the permission errors
.
To fix this: run sudo chown yourname /lib/local/lib
then run brew link pcre
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With