Closed toddr closed 4 years ago
Still broken
$>perl Makefile.PL; make
Checking if your kit is complete...
Looks good
Writing Makefile for Crypt::OpenSSL::RSA
Writing MYMETA.yml and MYMETA.json
cp RSA.pm blib/lib/Crypt/OpenSSL/RSA.pm
AutoSplitting blib/lib/Crypt/OpenSSL/RSA.pm (blib/lib/auto/Crypt/OpenSSL/RSA)
/usr/bin/perl /System/Library/Perl/5.18/ExtUtils/xsubpp -typemap /System/Library/Perl/5.18/ExtUtils/typemap -typemap typemap RSA.xs > RSA.xsc && mv RSA.xsc RSA.c
cc -c -arch x86_64 -arch i386 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -Os -DVERSION=\"0.31\" -DXS_VERSION=\"0.31\" "-I/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE" -DPERL5 -DOPENSSL_NO_KRB5 RSA.c
RSA.xs:5:10: fatal error: 'openssl/bio.h' file not found
#include <openssl/bio.h>
^~~~~~~~~~~~~~~
1 error generated.
make: *** [RSA.o] Error 1
From what I can tell, OSX doesn't ship the full header libraries for openssl. Probably due to license restrictions in openssl.
The only solution appears to be to compile openssl in opt or some other place.
Possibly we need something to make that more clear when Makefile.PL is run.
Hello. I success to build Crypt::OpenSSL::RSA on my macOS using homebrew's openssl.
brew install openssl
export C_INCLUDE_PATH=/usr/local/opt/openssl/include
export LIBRARY_PATH=/usr/local/opt/openssl/lib
cpanm Crypt::OpenSSL::RSA
So I suggest adding C_INCLUDE_PATH/LIBRARY_PATH for homebrew's openssl
if these directories
are exists.
How do you think?
Maybe this problem was fixed in Crypt::OpenSSL::RSA >= 0.30. These versions are using Crypt::OpenSSL::Guess to determine include/library path and so you don't have to export environment variables before installing the module.
@karupanerura Would you please try to reinstall Crypt::OpenSSL::RSA without exporting variables?
oops. My cpanm looked my DarkPAN's OLD Crypt::OpenSSL::RSA... Sorry. And thank you for telling it!
At the least, the macos github actions seems to test just fine.
I'm closing this for now.
Migrated from rt.cpan.org#122552 (status was 'new')
Requestors:
From nhorne@cpan.org on 2017-07-20 17:28:22: