Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

“ppm.bat install failed: Can't find any package that provides MinGW”

Tags:

perl

I am trying to install a missing Perl module (Palm::PDB) in Windows 7.

I have tried the following:

  1. Using Perl Package Manager: unfortunately it does not seem to find the module I want.

  2. Starting a CPAN shell in Windows using the command prompt: unfortunately it shows the following error. I have installed MinGW and also have set the path.

    D:\Scripts>perl -MCPAN -e 'shell' install Palm::PDB
    
    It looks like you don't have a C compiler and make utility installed.  Trying
    to install dmake and the MinGW gcc compiler using the Perl Package Manager.
    This may take a few minutes...
    
    ppm.bat install failed: Can't find any package that provides MinGW
    
    It looks like the installation of dmake and MinGW has failed.  You will not be
    able to run Makefile commands or compile C extension code.  Please check your
    internet connection and your proxy settings!
    

Is there any other easy way to install Perl modules on Windows?

like image 449
user1092042 Avatar asked Dec 10 '22 00:12

user1092042


1 Answers

Something is wrong with your ActiveState Perl install because it will automatically install dmake and MinGW for you.

If you have dmake.exe installed try to install MinGW by running these commands:

ppm install MinGW
perl Makefile.PL
dmake
dmake test
dmake install

Also MinGW and dmake are being installed into C:\Perl\site\bin. Make sure this directory is on your PATH (done by default by the ActivePerl installer).

like image 111
gangabass Avatar answered Dec 11 '22 12:12

gangabass