Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure error on macOS : cannot find zlib #238

Closed
xpech opened this issue Jan 9, 2024 · 3 comments · Fixed by #240
Closed

configure error on macOS : cannot find zlib #238

xpech opened this issue Jan 9, 2024 · 3 comments · Fixed by #240

Comments

@xpech
Copy link

xpech commented Jan 9, 2024

Configure is not able to find zlib.h on macOS.

Adding /opt/local on config.m4 line 43 resolve the issue.

I'm not allowed top send you a branch or PR.

Hope this helps,

Capture d’écran 2024-01-09 à 13 15 27
@Moskito89
Copy link

If you are using Homebrew, you can run ./configure --with-zlib-dir=/opt/homebrew/opt/zlib too.

@NoiseByNorthwest
Copy link
Owner

Would it be relevant to make config.m4 handle /opt/local as in @xpech 's screenshot ?

@xpech
Copy link
Author

xpech commented Jan 18, 2024

There is two package manager under macOS, Homebrew and Macport. For Macport user adding this search path fix the lib search issue. Using --with-zlib-dir not working.
The fix broke nothing else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants