我在cpanm下安裝了一個模塊,顯然不正確。它在系統perl下運行時可見且可用,但不在perlbrew下運行。但是,perlbrews cpanm指出模塊已成功安裝。最好的步驟?perlbrew perl cpanm故障
/Users/john/perl5/perlbrew/perls/perl-5.18.2/bin/perl
/Users/john/perl5/bin/cpanm
#!/usr/bin/perl
MM: INSTALL_BASE=/Users/john/perl5
MB: --install_base "/Users/john/perl5"
Note: .pl file contains following
#!/usr/bin/env perl
perlbrew開關後...
declare -x PERL5LIB="/Users/john/perl5/lib/perl5"
declare -x PERLBREW_BASHRC_VERSION="0.76"
declare -x PERLBREW_HOME="/Users/john/.perlbrew"
declare -x PERLBREW_MANPATH="/Users/john/perl5/perlbrew/perls/perl-5.18.2/man"
declare -x PERLBREW_PATH="/Users/john/perl5/perlbrew/bin:/Users/john/perl5/perlbrew/perls/perl-5.18.2/bin"
declare -x PERLBREW_PERL="perl-5.18.2"
declare -x PERLBREW_ROOT="/Users/john/perl5/perlbrew"
declare -x PERLBREW_VERSION="0.76"
declare -x PERL_LOCAL_LIB_ROOT="/Users/john/perl5"
declare -x PERL_MB_OPT="--install_base \"/Users/john/perl5\""
declare -x PERL_MM_OPT="INSTALL_BASE=/Users/john/perl5"
Link to sybase install with hombrew
請提供'which perl;哪個cpanm; head -n 1「$(which cpanm)」; printf'MM:%s \ n'「$ PERL_MM_OPT」; printf'MB:%s \ n'「$ PERL_MB_OPT」' – ikegami
在perlbrew中嘗試以下操作。 '$ cpanm --interactive -v App :: cpanoutdated','$ cpan-outdated','$ cpanm --interactive -v App :: CPAN :: Fresh'。然後執行'cpanm'。 –
檢查剛剛安裝的文件 – KeepCalmAndCarryOn