Installing a perl module from CPAN on XAMPP for Windows

℡╲_俬逩灬. 提交于 2019-12-18 17:37:08

问题


I'm pretty rusty with Perl and I don't think it's helping that I'm running it in Windows.

I'd like to install this module. I tried the instructions here to install a CPAN module, but it fails trying to install App::cpanminus (the very first step.) I tried just running cpan Config::Simple and it didn't work either. In both situations, it fails with this error message:

Unwrapping had some problem, won't try again without force
  Had problems unarchiving. Please build manually
Running make test
  Make had some problems, won't test
Running make install
  Make had some problems, won't install

Does CPAN just not work from the version of Perl that's installed with XAMPP? If so, how do I upgrade it without breaking anything?


回答1:


  1. manually download and unpack the distro archive
  2. change into the unpacked directory
  3. run cpanm . or cpan .



回答2:


XAMPP also ships with PPM in C:\xampp\perl\bin\ppm.bat which is often a more Windows friendly way to get modules for perl.

There's a step by step example of using ppm with XAMPP here: http://www.apachefriends.org/f/viewtopic.php?t=26407

Many modules are already installed in C:\xampp\perl\lib and C:\xampp\perl\site\lib



来源:https://stackoverflow.com/questions/7171138/installing-a-perl-module-from-cpan-on-xampp-for-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!