perl error when using modules

Peng Yu pengyu.ut at gmail.com
Mon Nov 8 05:21:11 PST 2010


On Mon, Oct 4, 2010 at 8:13 PM, Ryan Schmidt <ryandesign at macports.org> wrote:
> On Oct 4, 2010, at 19:37, Peng Yu wrote:
>
>> When I run a perl program that calls SSLeay, I get the following
>> error. I try to install SSLeay by 'cpan Net::SSLeay', but the problem
>> is still not solved. Could you please let me know how to fix the
>> problem?
>>
>> Can't load '/opt/local/lib/perl5/site_perl/5.8.9/darwin-2level/auto/Net/SSLeay/SSLeay.bundle'
>> for module Net::SSLeay:
>> dlopen(/opt/local/lib/perl5/site_perl/5.8.9/darwin-2level/auto/Net/SSLeay/SSLeay.bundle,
>> 1): Library not loaded: /opt/local/lib/libssl.0.9.8.dylib
>>  Referenced from:
>> /opt/local/lib/perl5/site_perl/5.8.9/darwin-2level/auto/Net/SSLeay/SSLeay.bundle
>>  Reason: image not found at
>> /opt/local/lib/perl5/5.8.9/darwin-2level/DynaLoader.pm line 230.
>> at wsp.pl line 88
>> Compilation failed in require at wsp.pl line 88.
>> BEGIN failed--compilation aborted at wsp.pl line 88.
>
> So the problem is that the SSLeay.bundle installed by p5-net-ssleay is still linking with the old openssl 0.9.8 library. openssl was updated to 1.0.0 in July. p5-net-ssleay also received a revision bump at that time, so you should have been prompted to rebuild it to fix this. See:
>
> http://trac.macports.org/ticket/25114
>
> Have you run "sudo port selfupdate" and "sudo port upgrade outdated" lately? If not, please do.
>
> Note, you should not install perl modules using the cpan command; instead, you should install them using MacPorts. For example, as I hinted at above, the Net::SSLeay module is provided by the p5-net-ssleay port.

I suspect that I used cpan to install SSLeay before, because even
after I run "sudo port selfupdate", "sudo port upgrade outdated" and
"sudo port install p5-net-ssleay", I still see the same error message
about SSLeay. Do you know what is the method to remove SSLeay
installed by cpan?


-- 
Regards,
Peng


More information about the macports-users mailing list