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

Hello Friends,
i am trying to run my sample script which uses DBI, i am getting following error:
Can't locate DBI.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/site/l +ib .) at C :\mytest.pl line 4. BEGIN failed--compilation aborted at C:\mytest.pl line 4.
i tried install DBI at command prompt using 'ppm' command followed by 'install DBI'. Its giving following error:
ppm> install DBI Error: No valid repositories: Error: 500 Can't connect to ppm.ActiveState.com:80 (connect: Unknown e +rror) Error: 500 Can't connect to ppm.ActiveState.com:80 (connect: Unknown e +rror)
can any one let me know as to whats the issue?

I am new to perl.

Any help would be greatly appreciated.

The version i am using is 5.8.7 on windows

regards,
Mary.

holli fixed formatting

Replies are listed 'Best First'.
Re: Can't locate DBI.pm in @INC
by Transient (Hermit) on Jul 21, 2005 at 20:16 UTC
    Error: 500 Can't connect to ppm.ActiveState.com:80


    I'd say that's your problem right there. Can you open your browser and point to that address??
      yes i could able to connect to internet.

      I tried to add repository and I tried to install DBI on windows XP and i am getting following error:
      ppm> install DBI Error: no suitable installation target found for package DBI. ppm>
      if i try repository:
      ppm> repository Repositories: [1] ActiveState PPM2 Repository [2] ActiveState Package Repository [3] local
      if i try search:
      ppm> search * Using cached search result set 1. 1. DBD-ODBC [0.28] ODBC driver for the DBI module. 2. DBI [1.14] Database independent interface for Perl
      any help would be greatly appreciated.

      thanks!

      holli fixed formatting

Re: Can't locate DBI.pm in @INC
by astroboy (Chaplain) on Jul 21, 2005 at 21:21 UTC
    Is your PC/Server connected to the Internet? Is your firewall or are other security measures blocking access? PPM is just trying to connect to the ActiveState repository to download the DBI module, but it's fails to connect.
      hello, I am trying to download DBD-Oracle.ppd from http://ftp.esoftmatic.com/outgoing/DBI/5.8.4/ and i am not able to download that. Is there any way that i could download DBD-Oracle.ppd for perl 5.8.7(or 5.8.4) version on windows XP. thanks, Mary.
        Why not? What command are you issuing?
Re: Can't locate DBI.pm in @INC
by holli (Abbot) on Jul 22, 2005 at 07:51 UTC