pkg-config not searching /opt/homebrew/lib/pkgconfig on Apple Silicon #2987
Unanswered
benjaminmordaunt
asked this question in
Everyday usage
Replies: 1 comment 4 replies
-
What's the output of |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
pkg-config
fails to find libraries installed by Homebrew, so I decided to investigate.pkg-config --variable pc_path pkg-config
gives/opt/local/lib/pkgconfig:/opt/local/share/pkgconfig
. I would expect to see the expanded version of$HOMEBREW_PREFIX/lib/pkgconfig
in here too, which for my M1 system is/opt/homebrew/lib/pkgconfig
. In fact, inspecting pkg-config.rb, it does appear that this should be in pc_path.At the moment, I am having to add this to my
.zshrc
:Any idea why this is happening? I have tried reinstalling pkg-config, so please don't suggest that :P
Beta Was this translation helpful? Give feedback.
All reactions