Search code examples
perlmingwperl-modulecpan

Changing installation directory of CPAN perl module using MinGW


I installed MinGW for installing perl modules from CPAN. after successful installation in C:/MinGW, I started msys.bat typed

cpan

cpan> install File::List

The module installed successfully. But it is not found in lib or site directory of c:/perl. It is installed in C:\MinGW\msys\1.0\lib\perl5\site_perl\5.8\File instead.

How could I change the installation directory of CPAN modules to c:/perl/site or c:/perl/lib? I used all default setting of MinGW. OS is Windows 7. Perl version 5.12.2.


Solution

  • I figured out the problem. I don't have Microsoft Visual C++ redistributable 2008, 2010. I installed it and my problem is solved. May be Perl module builds which requires C compiler required this components.

    Anyone ever have similar experience?