i want to install perl modules on my Mac. i am using the bundled perl that comes with MAMP Pro (but this also won't work for the installed Perl in /usr/bin/perl)
i can't install modules, as the binary libs are not code signed. i wanted to install DBI and after that DBD::mysql. have installed DBI, the files are created, also for example
./site_perl/5.24.0/darwin-thread-multi-2level/auto/DBI/DBI.bundle
./site_perl/5.24.0/darwin-thread-multi-2level/Bundle/DBI.pm
but when i try to install DBD::mysql i got the message
can't load '/Applications/MAMP/Library/lib/perl5/site_perl/5.24.0/darwin-thread-multi-2level/auto/DBI/DBI.bundle' for module DBI: dlopen(/Applications/MAMP/Library/lib/perl5/site_perl/5.24.0/darwin-thread-multi-2level/auto/DBI/DBI.bundle, 1): no suitable image found. Did find:
/Applications/MAMP/Library/lib/perl5/site_perl/5.24.0/darwin-thread-multi-2level/auto/DBI/DBI.bundle: code signature in (/Applications/MAMP/Library/lib/perl5/site_perl/5.24.0/darwin-thread-multi-2level/auto/DBI/DBI.bundle) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed. at /Applications/MAMP/Library/lib/perl5/5.24.0/darwin-thread-multi-2level/DynaLoader.pm line 197.
problem seems to be that the compiled binary libs are not code signed and so not accepted by MAC OSX