-
Notifications
You must be signed in to change notification settings - Fork 12
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
libidn not found with Homebrew on Mac #129
Comments
Could you test the proposal in #152 to see if this solves your issue? (I don't have access to Mac). |
@ondohotola Do you have any news on this issue? Have you had the chance to test the proposed fix? |
Thank you. On my M2 MacMini the following worked (your milage will vary, and if it squeals about missing Perl Modules, just install them with cpan):
and shows
whereas the Web GUI shows no error |
Can you run again with |
I'll email the output to you off line, as I don't want to post it her. |
Just for the record Mats and I are indeed engaging off line :-)-O |
It compiles out of the box on the Intel Mac, which leads me to requesting that perhaps the configure step should look not only for /usr/local but also for /opt/homebrew or even better test for Homebrew installation
and
and if it exist add $HB to the tests like I did above, ie something like
|
We might want to consider using |
That should work |
Any update (about the pkg-config)? |
I’ve started looking into it. Just to be sure whether using
|
A pull request (#210) is ready. Could you please tell me if it solves your issue? |
Use ExtUtils::PkgConfig to discover the CFLAGS and LDFLAGS for external libraries
I have downloaded the source as ZIP and cloned the GH. on both I get
|
If I do something like cpan Zonemaster::LDNS
cd $HOME/.cpan/build/Zonemaster-LDNS-4.0.2-0
perl Makefile.PL --prefix-openssl=$(pkg-config --variable=prefix openssl) --libidn-inc=$(pkg-config --variable=includedir libidn2) --libidn-lib=$(pkg-config --variable=libdir libidn2)
make
make test
make install it works, compiles, tests and installs |
Did you download the zip file for the develop branch, https://github.com/zonemaster/zonemaster-ldns/archive/refs/heads/develop.zip? The change is not yet on CPAN. I will be at next release in a few weeks. I would be good to know if it works for you. If you prefer I could create a dist package of develop branch that can be installed by |
perl Makefile.PL
include /Users/el/Downloads/zonemaster-ldns-develop/inc/Module/Install.pm
include inc/Module/Install/Metadata.pm
include inc/Module/Install/Base.pm
include inc/Module/Install/Makefile.pm
include inc/Module/Install/XSUtil.pm
include inc/Module/Install/Can.pm
Writing ppport.h
Adding CFLAGS for OpenSSL using pkg-config: -I/opt/homebrew/Cellar/openssl@3/3.4.0/include
'-I/opt/homebrew/Cellar/openssl@3/3.4.0/include' not found: No such file or directory
Adding LDFLAGS for OpenSSL using pkg-config: -L/opt/homebrew/Cellar/openssl@3/3.4.0/lib -lssl -lcrypto
Can't link/include C library 'openssl/crypto.h', 'crypto', aborting. and ls -las /opt/homebrew/Cellar/openssl@3/3.4.0/include/openssl/crypto.h
56 -rw-r--r--@ 1 el admin 25214 Oct 22 14:26 /opt/homebrew/Cellar/openssl@3/3.4.0/include/openssl/crypto.h |
Hi @ondohotola, thanks for your feedback! I made a mistake that I failed to catch during my own testing. Can you try applying the change in #213 and see if it works? |
You are most welcome. Do I pull the development ZIP again? |
If you want to download a ZIP file, you should download this one: https://github.com/marc-vanderwal/zonemaster-ldns/archive/refs/heads/bugfix/%23129-part-3.zip. Or you can patch the Makefile.PL you already have if you feel comfortable enough. I’ve just changed a handful of lines. |
Oh, I can do a little Perl, but I will do it on the ZIP file so we know it works out of box Thanks. |
Document new dependency on ExtUtils::PkgConfig
I am unable get Zonemaster:LDNS to compile on iMac/MacPro x86_64 MOnterey 12.1 with CPAN updated to latest.
It does not find libidn, which is installed from Homebrew.
From what I see it's just something similar like --prefix-openssl which needs to be added to the Makefile.PL, even though I see this in /usr/local
Thanks, el
The text was updated successfully, but these errors were encountered: