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

Fellow monasterians:
Installed Panther on my perfectly running G4 and of course, MySQL and DBI got wacked. Got both reinstalled (I think) using my GUI from macosguru.de and an neat little installer for the DBI. All files seem to be in the same places they were before the OS upgrade, but I'm getting the following errors:

1. When running a perl script from my intranet:
Can't locate DBI.pm in @INC (@INC...
and 2. When running 'dbish':
Can't locate DBI/Shell.pm in @INC (@INC...
Like I said, everything seems to be where it supposed to be. Ideas?


—Brad
"A little yeast leavens the whole dough."

Replies are listed 'Best First'.
Re: Installing the DBI errors
by Jaap (Curate) on Nov 07, 2003 at 22:51 UTC
    Well... check your @INC. Just print it to STDOUT and look if DBI.pm is in any of the printed dirs.
      As Jaap mentioned check your @INC, if you don't know how to do it try this on the CLI:
      perl -e 'print join("\n", @INC);'
      This will return a list of the directories that Perl looks in for modules and the DBI.pm should be residing in one of them.

        Or more concisely:

        perl -le'print for @INC'

        Though not in this discussion, I thank you for that little tidbit. I have been having similar problems with some of my modules at work. This should give me a pretty good idea if I am missing anything.

        Let me guess, this is probably first day PERL101 stuff and I missed that lesson!

        Thanks again!

        Paulster2