How to install perl package Class/CSV.pm using port?

Peng Yu pengyu.ut at gmail.com
Sun May 29 19:57:33 PDT 2011


Hi,

I get the following error when I run a perl script. Class/CSV.pm is
missing. I remember that I should use port rather than cpan to install
perl modules. But I'm not sure how to find the corresponding port
package for any given perl module. Is there a systematic naming
convention for converting module names from perl to port? What port
package is form Class/CSV.pm?

Can't locate Class/CSV.pm in @INC (@INC contains:
/opt/local/lib/perl5/site_perl/5.12.3/darwin-multi-2level
/opt/local/lib/perl5/site_perl/5.12.3
/opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level
/opt/local/lib/perl5/vendor_perl/5.12.3
/opt/local/lib/perl5/5.12.3/darwin-multi-2level
/opt/local/lib/perl5/5.12.3 /opt/local/lib/perl5/site_perl
/opt/local/lib/perl5/vendor_perl .) at ./xxx.pl line 7.
BEGIN failed--compilation aborted at ./xxx.pl line 7.

-- 
Regards,
Peng


More information about the macports-users mailing list