Perl Help on OSX please...

buc99

Don't Tread on Me!
Hello everyone-
I'm trying to use a perl front end to mysql. Everything should work, but when the cgi script is run it kicks out an error page in the browser. I got the following from tail /var/log/httpd/error_log:

Can't locate DBI.pm in @INC (@INC contains: /System/Library/Perl/darwin /System/Library/Perl /Library/Perl/darwin /Library/Perl /Library/Perl /Network/Library/Perl/darwin /Network/Library/Perl /Network/Library/Perl .) at /cgi-bin/view.cgi line 3.
BEGIN failed--compilation aborted at /cgi-bin/view.cgi line 3.
[Thu Mar 28 00:17:28 2002] [error] [client 127.0.0.1] Premature end of script headers: /cgi-bin/view.cgi

Basically, this is telling me that I'm missing some module. Does anyone know what module I'm missing and how I can install it? ie.. Where to get it and how to install on my system?

Thanks in advance.:)
SA
 
Easy -- you're missing the DBI module.

Yes, I'm serious. The DBI module is a database interface module.

You can get it from CPAN.

Once you download the module (try searching for DBI from the search.cpan.org link) you'll need to install it. The FAQ is a good place to go to find out how to do that. :)
 
Back
Top