Date: Fri, 8 Mar 2002 22:06:33 -0800 (PST) From: Tom Kersten <tomkersten98@yahoo.com> To: freebsd-questions@freebsd.org Subject: Problem connecting Mysql w/ Perl on FreeBSD.... Message-ID: <20020309060633.49356.qmail@web10003.mail.yahoo.com>
next in thread | raw e-mail | index | archive | help
Hello, I am trying to connect a Mysql Database to a perl script. I am running FreeBSD-4.5, and have Perl version 5.005_03 built for i386-freebsd. I have installed and can use MySQL (3.23) on my machine. I have installed all the stuff that I need to connect (I think)...the following are install attempts in p5-Mysql & p5-DBI & p5-DBD-mysql. ***********clipped************************************ ===> p5-Mysql-modules-1.2216 is already installed - ***********clipped************************************ ***********clipped************************************ ===> p5-DBI-1.21 is already installed ***********clipped************************************ ***********clipped************************************ ===> p5-DBD-mysql-2.1010 is already installed ***********clipped************************************ Here is the script I am using: #! /usr/bin/perl use CGI; use DBI; $cgi = new CGI; print "The CGI object was created successfully\n"; @driver_names = DBI->avalable_drivers (); print "These DBI drivers are available: @driver_names\n"; exit (0); (from Paul Dubois's "MySQL and Perl for the Web") Here is the error I am getting: www# perl /home/thomas/projects/misc/intro2.pl (offline mode: enter name=value pairs on standard input) The CGI object was created successfully Can't locate auto/DBI/avalable_dr.al in @INC (@INC contains: /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503 /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 .) at /home/thomas/projects/misc/intro2.pl line 6 I can't seem to figure out what is going on. Everything is installed but I can't come up with any information on "avalable_dr.al"....in the book, on google, etc. Has anyone had this problem? How can I fix it? TIA, Thomas Kersten __________________________________________________ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020309060633.49356.qmail>