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

In reply to Installing ppd package from a local repository by zejames

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.