我最近安裝了XAMPP。一切都很好,但有一件事不讓我休息:我無法通過cpanm獲得任何模塊。典型的安裝日誌是這樣的:Cpanm由於應該缺少'make'而無法安裝任何模塊
cpanm (App::cpanminus) 1.6005 on perl 5.016003 built for MSWin32-x86-multi-thread
Work directory is C:\Users\2B86~1/.cpanm/work/1448496711.6352
You have LWP 6.04
You have C:\Users\boss\AppData\Local\Atlassian\SourceTree\git_local\bin\tar.exe, C:\Users\boss\AppData\Local\Atlassian\SourceTree\git_local\bin\gzip.exe and C:\Users\boss\AppData\Local\Atlassian\SourceTree\git_local\bin\bzip2.exe
You have C:\Users\boss\AppData\Local\Atlassian\SourceTree\git_local\bin\unzip.exe
Searching DateTime::Tiny on cpanmetadb ...
--> Working on DateTime::Tiny
Fetching http://www.cpan.org/authors/id/A/AD/ADAMK/DateTime-Tiny-1.04.tar.gz
-> OK
Unpacking DateTime-Tiny-1.04.tar.gz
Entering DateTime-Tiny-1.04
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.64)
Configuring DateTime-Tiny-1.04
Running Makefile.PL
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.64)
-> FAIL Can't configure the distribution. You probably need to have 'make'. See C:\Users\2B86~1\.cpanm\build.log for details.
線-> FAIL Can't configure the distribution. You probably need to have 'make'. See C:\Users\2B86~1\.cpanm\build.log for details.
是爲了指示錯誤,但我有在同一目錄cpanm的make.exe。
有些史前史,我在安裝xampp之前安裝了Strawberry Perl,但並未意識到它已經內置了Perl。在發現我決定卸載前者後,cpanm突然開始遇到此錯誤。我仔細檢查過,並沒有在我的Strawberry Perl安裝中找到一個make.exe的痕跡,但它工作得很好,雖然它們共存,但xampp的cpanm也起作用。
我試圖尋求谷歌的幫助,但它提出了sudo apt-get install build-essentials
般的建議。
我不能真正檢查你的答案了,因爲我很長一段時間沒有確切的設置。其他讀者希望可以檢查它。 – ZzZombo