On Thu, Feb 22, 2001 at 02:16:56AM -0800, Thomas O'Neill wrote:
> I have built a small guestbook using perl and MySQL
> when i try to run my perl script i get the following error.
>
> Software error:
> [Thu Feb 22 14:38:01 2001] DBI.pm: Can't locate DBI.pm in @INC (@INC
> contains: /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503
> /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005) at
> /home/httpd/cgi-bin/guestbook.cgi line 8. BEGIN failed--compilation aborted
> at /home/httpd/cgi-bin/guestbook.cgi line 8.
>
> I have installed MySQL
> and the two perl plugins DBI and DBD using
>
> foo>perl -MCPAN -e 'install DBI'
> foo>perl -MCPAN -e'install DBD::mysql'
>
> Does anyone know where I should go from here?
To a Perl or CGI FAQ. Perl isn't able to find the modules you
installed. So it's include path (@INC) is wrong, or you installed the
modules in a non-standard place. You just need to tell your script
where to find them...
Jeremy
--
Jeremy D. Zawodny, <[EMAIL PROTECTED]>
Technical Yahoo - Yahoo Finance
Desk: (408) 328-7878 Fax: (408) 530-5454
Cell: (408) 439-9951
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php