in reply to Can't locate DBD/ODBC.pm in @INC

Looks like you have installed the DBI.pm right, but not the DBD you need. Go to the DBD directory on CPAN and get the latest ODBC driver file.

Remember, DBI is the engine, the DBDs are the drivers. Gotta have a Chevy driver for the Chevy car ;-)

What does this little button do . .<Click>; "USER HAS SIGNED OFF FOR THE DAY"

Replies are listed 'Best First'.
Re: Re: Can't locate DBD/ODBC.pm in @INC
by Fian (Novice) on Mar 15, 2001 at 21:07 UTC
    Some straight questions now

    When I download the ODBC from CPAN and I then have to unzip the file, do I have to extract these files to the sam edirectory as my Perl source code?

    If I don't then does it matter where I save it (I have a sneaking suspicion that it does)

    I have already downloaded the ODBC and it is where it is supposed to be but I still get that error that it can't locate it:



     Can't locate DBD/ODBC.pm in @INC

      Did you unzip and untar the package, and do the installation procedure outlined in the INSTALL file? ( typically perl Makefile.PL; make; make install?

      When you say the file is where it is supposed to be, there must be a ODBC.pm file in the DBD subdirectory of one of the @INC directories. Are you sure that's correct?

      Philosophy can be made out of anything. Or less -- Jerry A. Fodor

      What is your OS? you downloaded a zip file? or was it a tar.gz file? For linux, etc. you use tar -xvzf filename to open the file.
      Then you should do this:

      perl Makefile.PL make make test make install

      in that order. If you are on Windows, I guess use the ppm system. I am not familiar enough with windows perl to help with that.

      What does this little button do . .<Click>; "USER HAS SIGNED OFF FOR THE DAY"
        Sorry I did'nt state the obvious earlier -- :-)
        I'm using NT.
        I really appreciate the help folks
        Keep er coming.!.!