我最近安装了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