[英]cygwin perl cpan installations in wrong directory
我有一個cygwin perl安裝程序,我執行了cpan App::cpanminus
或cpan ExtUtils::Config
我得到一個響應,說明軟件包已成功安裝,
但是cpanm不在~/Perl5/bin
上的路徑中,如果我執行perl -e 'use ExtUtils::Config;'
,我ExtUtils::Config
知道ExtUtils::Config
的安裝位置perl -e 'use ExtUtils::Config;'
我得到一個找不到的錯誤
我感覺這是一個cpan配置錯誤,但不知道它是什么或如何解決,有人可以在這方面幫助我嗎?
編輯:
輸出echo 'o conf' | cpan | perl -ne'print if /^\\s*(make|mbuild)(pl)?_/'
echo 'o conf' | cpan | perl -ne'print if /^\\s*(make|mbuild)(pl)?_/'
make_arg []
make_install_arg []
make_install_make_command [/usr/bin/make]
makepl_arg []
mbuild_arg []
mbuild_install_arg []
mbuild_install_build_command [./Build]
mbuildpl_arg []
並輸出perl -le'print "$_=$ENV{$_}" for grep /^PERL/, keys %ENV'
的perl -le'print "$_=$ENV{$_}" for grep /^PERL/, keys %ENV'
PERL_MB_OPT=--install_base "/home/<user>/perl5"
PERL_MM_OPT=INSTALL_BASE=/home/<user>/perl5
以下內容告訴模塊安裝程序(分別為ExtUtils :: MakeMaker和Module :: Build)將模塊安裝在perl
不在的目錄中:
PERL_MM_OPT=INSTALL_BASE=/home/<user>/perl5
PERL_MB_OPT=--install_base "/home/<user>/perl5"
要么取消設置這些變量(以將模塊安裝在其“適當的”位置),要么告訴perl
在該目錄中查找模塊。
export PERL5LIB="$HOME/perl5/lib/perl5"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.