Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Installing DBI

by SamueD2 (Novice)
on Jan 29, 2003 at 19:54 UTC ( [id://231065] : perlquestion . print w/replies, xml ) Need Help??

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

I need to install DBI for MS SQL Server. I am behind a firewall and when I type
C:\Perl>ppm install DBI
I get the error below. Can anyone help me.
Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. H:\>c: C:\>cd\perl C:\Perl>ppm install DBI Error: No valid repositories: Error: 500 Can't connect to (connect: Unknown error) at C:/Perl/site/lib/PPM/ line 84 Error: 500 Can't connect to (connect: Unknown error) at C:/Perl/site/lib/PPM/ line 84 C:\Perl>

Edit by tye, add CODE tags

Replies are listed 'Best First'.
Re: Installing DBI
by TStanley (Canon) on Jan 29, 2003 at 20:30 UTC
    The following is straight out of the ActiveState documentation:
    Set Environment Vars
    Up to three environment variables need to be set.
    Under Windows 2000
    1. Right click on "My Computer"
    2. click on "Properties" and select the "Advanced" tab.
    3. Click the button marked "Environment Variables"
    4. Make the following changes in the "System Variables" window
      1. With the "New" button, add the setting HTTP_proxy, with your proxy name as the value (you must include "http://"), followed by a colon and the proxy port, if applicable; e.g., "http://proxy:8080"
      2. If you require a user name and/or password to access your proxy, use the "New" button to add the settings HTTP_proxy_user and HTTP_proxy_pass, with your user name and password as the respective values.

    It is God's job to forgive Osama Bin Laden. It is our job to arrange the meeting -- General Norman Schwartzkopf
Re: Installing DBI
by Jaap (Curate) on Jan 29, 2003 at 20:01 UTC
    You probable need to tell ppm somehow that you want to use a proxy (perhaps on port 8080) to fetch stuff from internet. Ask your system admin about the hostname & port of the proxy. If you call ppm without any options, it might display a help text.
      Jaap is right on... here is what you enter at the cmd prompt (substitute your server and port for myproxy:8080): HTTP_proxy=
Re: Installing DBI
by AcidHawk (Vicar) on Jan 30, 2003 at 08:49 UTC

    I also had difficulty installing modules from behind a firewall.

    Have you looked at trying it the Re: Perl module downloading way..?

    Download the module from the http site at activestate and install them from a local dir.

    Of all the things I've lost in my life, its my mind I miss the most.