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

Hello,
I am working on win 2000 with Perl 5.8
I am trying to install certain external packages such as Date-Calc, Carp etc however ppm just wont work.
Below is an example
ppm> search Date-Calc Searching in Active Repositories Error: No valid repositories: Error: 500 Can't connect to ppm.ActiveState.com:80 (Bad hostname 'ppm. +ActiveState.com')
I am behind a proxy server. So I tried an alternate
I downloaded the module on my local machine and then tried installing it.
ppm> install C:\Perl\newlib\Date-Calc.ppd Can't call method "ok" on an undefined value at C:/Perl/site/lib/PPM/U +I.pm line 881, <$__ANONIO__> line 19.
Anybody been in the same situation and knows whats going on ? Thanks

Replies are listed 'Best First'.
Re: PPM wont work
by etm117 (Pilgrim) on Sep 27, 2005 at 18:09 UTC
    What works for me is that I switch into the directory that the .ppd file is and from there run (using your example)

    ppm install Date-Calc.ppd

    Update: Please let me clarify... I've seen that error in the past with a different module (don't remember which one) and the above has worked for me. But I do not know if it will work to remedy the error with the module you are trying to install.

      I did try that but stll receive the same error:
      C:\Perl\newlib>ppm install Date-Calc.ppd Can't call method "ok" on an undefined value at C:/Perl/site/lib/PPM/U +I.pm line 881, <$__ANONIO__> line 19.
      Any more suggestions will be most welcome. Thanks
Re: PPM wont work
by NateTut (Deacon) on Sep 27, 2005 at 18:47 UTC
    Add lines similar to the following at the top of C:\Perl\bin\ppm.bat (or wherever you have it installed)
    set http_proxy=http://<YourProxy Server Address here>:<Proxy Server Po +rt Here> set http_proxy_user=<Your UserName Here> set http_proxy_pass=<Your Password Here>
    Or if that is unclear:
    set http_proxy=http://127.0.0.1:8080 set http_proxy_user=shreya set http_proxy_pass=Proxy_Password


    I hope this helps...
Re: PPM wont work
by holli (Abbot) on Sep 27, 2005 at 18:59 UTC
Re: PPM wont work
by InfiniteSilence (Curate) on Sep 27, 2005 at 18:20 UTC
    Try this node: 495155

    Celebrate Intellectual Diversity

Re: PPM wont work
by shreya (Novice) on Sep 27, 2005 at 18:34 UTC
    Since PPM wont even install modules located on local computer I dont think this is an Proxy error. Any other suggestions are welcome. Thanks