Skip to content
Discussion options

You must be logged in to vote

Found it — the issue is that Homebrew installs bzip2 as keg-only, so it's never symlinked into /opt/homebrew/include or /opt/homebrew/lib. The bz2 extension's configure script only checks standard paths (/usr/local, /usr, /opt/local) by default — it doesn't pick up CPPFLAGS/LDFLAGS automatically, even if you've exported them in your shell.

The fix is to pass the library path directly via --with-bz2, without the -- separator (that separator makes PIE treat the flag as a second positional argument, which is why you got "Too many arguments"):

pie install php/bz2 --with-bz2=/opt/homebrew/opt/bzip2

If PIE rejects that with an "invalid option" error instead, it means the bz2 package definition …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by asgrim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants