Homebrew: Cannot start ag (Silver Searcher)

My homebrew ag installation completes 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?

+5
source share
2 answers

A Japanese blog post describes what needs to be fixed. libpcre.1.dylib - file provided by pcre Homebrew.

The fix for this is brew uninstall pcre && brew install pcre . ag should work after that.

+10
source

YOU SHOULD run a brew doctor and keep track of what they have suggested.

Mine 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 .

+2
source

Source: https://habr.com/ru/post/1203180/


All Articles