Tuesday, January 27, 2015

How do we fix "Could not locate a PPD (Perl package descriptor) file for a package" on Windows?

Usually Activatestate perl tries to refer the default repository http://code.activestate.com/ppm/ and download the relevant files for a package to be installed.

When it does not get the specified one, it throws exception. To overcome such a situation, redirect PPM to access a different repository easily available over internet.

For example, to install package XML-LibXML from a different repository, run the following command on console :

ppm install repository/XML-LibXML.ppd

For instance,

ppm install http://www.bribes.org/perl/ppm/XML-LibXML.ppd