Chris Aitken wrote:

> I am writing a perl script on FreeBSD 4.3 running PHP and MySQL, however i
> get the following error message when I try and use DBI to connect to a
> MySQL database to pull some data.
>
> Can't locate DBI.pm in @INC (@INC contains: /usr/libdata/perl/5.00503/mach
> /usr/libdata/perl/5.0
> 0503 /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
> /usr/local/lib/perl5/site_perl/5.005 .) a
> t /usr/sbin/scriptname line 9.
>
> Is there something I have not installed or do i have to modify a setup file?
> I have installed mod_perl and p5_apache_DBI and still getting this error.
>
> Any suggestions would be welcomed.

This is really a perl/BSD question but...

I doubt that p5_apache_DBI is the right port.  You want pure 'DBI' and
'DBD::mysql' ports.  Of course you can always either d/l the source for DBI,
et. all from your favorite cpan mirror or do:
su -
perl -MCPAN -e 'install DBI'

If you have further questions, please direct them to a perl or FreeBSD list.

Thanks.

--Bill



---------------------------------------------------------------------
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

Reply via email to