From owner-freebsd-questions Fri Mar 8 22: 6:38 2002 Delivered-To: freebsd-questions@freebsd.org Received: from web10003.mail.yahoo.com (web10003.mail.yahoo.com [216.136.130.39]) by hub.freebsd.org (Postfix) with SMTP id 1966F37B400 for ; Fri, 8 Mar 2002 22:06:34 -0800 (PST) Message-ID: <20020309060633.49356.qmail@web10003.mail.yahoo.com> Received: from [68.15.191.99] by web10003.mail.yahoo.com via HTTP; Fri, 08 Mar 2002 22:06:33 PST Date: Fri, 8 Mar 2002 22:06:33 -0800 (PST) From: Tom Kersten Subject: Problem connecting Mysql w/ Perl on FreeBSD.... To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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