cpan - cpanm perl modules installed to user directory -
cpan - cpanm perl modules installed to user directory -
i'm new perl , trying install net::sftp module running
cpanm net::sftp
i tried install , after 5-10 minutes failed following
! configure failed math-gmp-2.06. see /users/applemacbookpro/.cpanm/build.log details. ! bailing out installation net-ssh-perl-1.34. retry --prompt or --force. ! bailing out installation net-sftp-0.10. retry --prompt or --force. 19 distributions installed
but, when tried install again, noticed message:
can't write /opt/local/lib/perl5/site_perl/5.12.3 , /opt/local/bin: installing modules /users/applemacbookpro/perl5
so, have bunch of modules installed in ~/perl5
directory - going run problems if install using sudo , perl modules located in 2 separate directories?
perl searches modules based on @inc, can see perl -v
. (that's uppercase "v".) if have module installed in 2 locations, first 1 found in @inc 1 loaded.
perl wouldn't know in /users/applemacbookpro/perl5
, chances won't find modules there.
if didn't have modules in /users/applemacbookpro/perl5
begin with, sense free delete directory.
perl cpan
Comments
Post a Comment