Debug tips if something wrong when brew install something
I have to say homebrew is hard to debug if something is wrong when building a package although it’s a de-facto package manager on Mac for the developer.
If ‘brew install something’ failed, you can use the following command to see more info:
1 | brew install -v your_package |
If you can’t find useful info, you can find the logs from:
1 | ... |
You can edit the following file to add more debug option, for example ‘make V=1’:
1 | /usr/local/Homebrew/Library/Taps/<TAPNAME>/homebrew-<REPONAME>/<PACKAGENAME>@<PACKAGEVERSION>.rb |
Finally, if some program can’t find, it might be the reason superenv bring. You can consider using std env in the formula like:
1 | class PACKAGENAME < Formula |
Above is what I learned this morning.
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment