Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Please advise why my PPM doesnt want to work:
PPM> install Net-Telnet Install package 'Net-Telnet?' (y/N): y Installing package 'Net-Telnet'... Error installing package 'Net-Telnet': Could not locate a PPD file for + package N et-Telnet
Same error for no matter what module I try and install. I also reinstalled ActivePerl, still get same error. Install said to check the following info if ppm doesnt work:
If you are behind a firewall, you may need to set the following environment variables so that PPM will operate properly: set HTTP_proxy=address:port [e.g. 192.0.0.1:8080] set HTTP_proxy_user=username set HTTP_proxy_pass=password set HTTP_proxy_agent=agent [e.g. "Mozilla/5.0"]
I am on an NT workstation and did the commands as listed above in DOS under \perl\bin directory but still cant get ppm to work. Same error messages. Am I suppose to issue commands in my DOS to set HTTP's and how do I find out what proxy agent I have? I put in "Mozilla/5.0" but not sure. I am latest Netscape browser.

Replies are listed 'Best First'.
Re: ppm problems
by strat (Canon) on Mar 06, 2002 at 18:05 UTC
    You could also download the ppm-packages as zips from http://www.activestate.com/PPMPackages/zips/6xx-builds-only/ ( or http://www.activestate.com/PPMPackages/zips/5xx-builds-only/ if your perl-version smaller than 5.6),
    then unpack the zipfile (e.g. with winzip),
    search for the file with the extension .ppd and
    open a shell and change into the directory containing this file (lez call it Net-Telnet.ppd).
    There you enter the following command:

    ppm install Net-Telnet.ppd

    Best regards,
    perl -le "s==*F=e=>y~\*martinF~stronat~=>s~[^\w]~~g=>chop,print"

      Thanks, I tried your suggestion and still get same PPD errors.
(podmaster: got pod) Re: ppm problems
by PodMaster (Abbot) on Mar 07, 2002 at 08:41 UTC
    The same question came up at Module Installs, and the answer is simple (read the thread anyway, lots of useful information), you need to "search" before you can "install".

    I will now quote from the PPM faq:

    How Do I use PPM?

    Quick start: at the PPM command prompt, type search * to get a listing of all available packages, then type install <package name>, where <package name> is the name of a package displayed by the search command. To list the packages you have previously installed using PPM, use the query * command. Those using PPM can type 'search' to get a listing of all available packages, then type 'install <packagename>', where <packagename> is the name of a package displayed by the 'search' command. To list the packages you have previously installed using PPM, use the 'query' command.

    Make sense?

    On the other hand, is if you simply

    C:\>ppm3 PPM - Programmer's Package Manager version 3.0 beta 3. Copyright (c) 2001 ActiveState SRL. All Rights Reserved. Entering interactive shell. Using Term::ReadLine::Stub as readline lib +rary. Profile tracking is not enabled. If you save and restore profiles manu +ally, your profile may be out of sync with your computer. See 'help profile' + for more information. Type 'help' to get started. ppm> install Net-Telnet ==================== Install 'Net-Telnet' version 3.02 in ActivePerl 5.6.1.631. ==================== Downloaded 41868 bytes. Extracting package. This may take a few seconds. Extracting 19/19: blib/html/site/lib/Net/Telnet.html Installing C:\Perl\html\site\lib\Net\Telnet.html Installing C:\Perl\site\lib\Net\Telnet.pm Writing C:\Perl\site\lib\auto\Net\Telnet\.packlist ppm>
    you will not have such problems (apparently too many people were confused by the fact that you needed to search before you could attempt to install successfully).

    **note: do not mix ppm and ppm3, they don't play well together (i'd just stick to ppm3, cause it's about 5 times better)

    Good reading: How to Read The Friendly Manual
     

    Look ma', I'm on CPAN.


    ** The Third rule of perl club is a statement of fact: pod is sexy.