http://www.perlmonks.org?node_id=404919

Fellow monks,

Installing a ppd perl module from local directory should be quite straightforward. But it is not. So as I've spent too much time to achieve it today, here is what I did.

One good reason to need this is when there is a proxy between Internet and you, that requires NTLM authentication.
  1. Download ActivePerl (of course, but who knows ;)
  2. Choose a local directory that will store browser-downloaded packages (for exemple, I'll use d:\documents and settings\zejames\my documents\ppd
  3. Add this repository to ppm and make it the main one:
    D:\perl\bin>ppm PPM - Programmer's Package Manager version 3.1. Copyright (c) 2001 ActiveState Corp. All Rights Reserved. ActiveState is a devision of Sophos. Entering interactive shell. Using Term::ReadLine::Stub as readline lib +rary. Type 'help' to get started.
    ppm> rep add Local "d:\documents and settings\zejames\my documents\ppd"
    [1] ActiveState PPM2 Repository [2] ActiveState Package Repository [3] Local
    ppm> rep up Local
    Repositories: [1] ActiveState PPM2 Repository [2] Local [3] ActiveState Package Repository
    ppm> rep up Local
    Repositories: [1] Local [2] ActiveState PPM2 Repository [3] ActiveState Package Repository
  4. Download the package on the Internet and the .ppd file, and put them into your repository
  5. Edit the .ppd file :
    • remove the ARCHITECTURE line (<ARCHITECTURE NAME="MSWin32-x86-multi-thread-5.8" />)
    • Change the CODEBASE information :
      [...] <CODEBASE HREF="file://D:/Documents and Setting/zejames/my documents/p +pd/Math-Pari.tar.gz" /> [...]
  6. Finally, launch ppm to install it :
    D:\Perl\bin>ppm install Math-Pari ==================== Install 'Math-Pari' version 2.010500 in ActivePerl 5.8.4.810. ==================== Installing D:\Perl\site\lib\auto\Math\Pari\Pari.dll Installing D:\Perl\site\lib\auto\Math\Pari\Pari.lib Installing D:\Perl\site\lib\auto\Math\Pari\Pari.exp Installing D:\Perl\site\lib\auto\Math\Pari\Pari.bs Installing D:\Perl\html\site\lib\Math\Pari.html Installing D:\Perl\html\site\lib\Math\libPARI.dumb.html Installing D:\Perl\html\site\lib\Math\libPARI.html Installing D:\Perl\html\site\lib\Math\PariInit.html Files found in blib\arch: installing files in blib\lib into architectu +re depende nt library tree Installing D:\Perl\site\lib\Math\libPARI.dumb.pod Installing D:\Perl\site\lib\Math\PariInit.pm Installing D:\Perl\site\lib\Math\Pari.pm Installing D:\Perl\site\lib\Math\libPARI.pod Successfully installed Math-Pari version 2.010500 in ActivePerl 5.8.4. +810.
  7. That should be good :
    D:\Perl\bin>perl -MMath::Pari -e ''

--
zejames