Detect homebrew prefix path to fix search without pkg-config installed #36
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is
/opt/homebrewon most macs, which combines just below withlib/pkgconfigto get/opt/homebrew/lib/pkgconfigin the search paths, which is where all installed & linked homebrew pkgconfig files live.Hi! I had some trouble installing
irubywithrubygems-requirements-systemon a new Mac, where the homebrew install of libzmq was triggered and returned success (exit code 0), but there was still an unclear failure in the gem install. I traced that to the pkg-config check just after the install:This doesn't happen if you have installed
pkgconfthrough homebrew, but I can see the pkg-config executable is not intended to be required. I saw that pkg-config was vendored and came here to submit a patch -- the other gem is slightly out of date, but evenmainhere wasn't working for me withoutpkg-configavailable.This PR adds the right path, based on
brew --prefix, for installed homebrew packages. The most recent change in this section looks like it tests/opt/homebrew/Homebrew/lib/pkgconfigwhich doesn't exist.