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

Hi monks,
I am trying to install Win32::API on windows 2000 server. I tried
ppm install Win32-API
got an error saying
Error: No valid repositories: Error: 500 Can't connect to ppm.ActiveState.com:80 (Bad hostname 'ppm. +ActiveState.com') Error: 500 Can't connect to ppm.ActiveState.com:80 (Bad hostname 'ppm. +ActiveState.com')
I tried to install it from other repository
ppm> rep add bdp http://www.bribes.org/perl/ppm/ Repositories: [1] ActiveState PPM2 Repository [2] ActiveState Package Repository [3] test [4] bdp ppm> install Win32-API
again got an error
Error: Failed to download URL http://www.bribes.org/perl/ppm/Win32-API +.ppd: 500 Can't connect to www.bribes.org:80 (Bad hostname 'www.bribes.org')
Any suggestions?

Replies are listed 'Best First'.
Re: Installing Win32::API on windows
by marto (Cardinal) on Jun 15, 2005 at 10:21 UTC
    Hi,

    There is a great tutorial (A guide to installing modules for Win32) detailing how to install modules manually if you are having problems, and how to get around a proxy if that is the issue.

    Hope this helps,

    Cheers

    Martin
Re: Installing Win32::API on windows
by PodMaster (Abbot) on Jun 15, 2005 at 10:46 UTC
    Any suggestions?
    Figure out why you can't connect to either website. You're probably behind some firewall and are using a proxy, and you need to inform PPM which one. `perldoc ppm' ought to tell you how.

    You can always read through A guide to installing modules.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

Re: Installing Win32::API on windows
by JamesNC (Chaplain) on Jun 15, 2005 at 12:01 UTC
    Looks like a proxy issue and all you need to do is set HTTP_PROXY evironment variable.
    c:\ set HTTP_PROXY=<yourpoxy>
    or to unset ( I have mine set for work ) and have to unset it at home to nothing.
    c:\ set HTTP_PROXY=

    Oddly, proxy and firewalls are not mentioned in the perldoc for ppm on my version of AS Perl (5.8.3), this is asked a lot though
        Holli, I think you need to read my post more carefully, I said that perldoc ppm did not have the answer. Your link to the active state ppm faqs is not the link to the perldoc for ppm. PodMaster correctly (IMO) suggested what the problem was AND suggested the SOPW use perldoc ppm to find the answer, and that is not where it is mentioned and that is why I mentioned it. It would be very helpful if your link was in the SEE ALSO section of the ppm perldoc. If you would like me to email you a dump of perldoc ppm I will be happy to prove it to you. The link you added is helpful, but that data is NOT in my AS 5.8.3 ppm perldoc version which I specified in my post.