-----Original Message----- From: Smithson, Michael (M.E.) [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 23, 2001 3:39 PM To: 'Hamilton, Andrew Mr RAYTHEON 5 SIG CMD' Subject: RE: Can't locate DBD/mysql.pm Also, you can invoke the use lib pragm and type the following: use lib '/my/path/to/DBD/mysql'; right below the #!/usr/bin/perl -w line. Did you also forget to type "use DBD::Mysql" as well. I am not sure if this is mandatory or not, but I always do it. Mike -----Original Message----- From: Hamilton, Andrew Mr RAYTHEON 5 SIG CMD [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 23, 2001 7:37 AM To: 'pkp team' Cc: [EMAIL PROTECTED] Subject: RE: Can't locate DBD/mysql.pm You might check where the DBD installed. Some of them install in /usr/local instead of /usr. Sounds like what has happened. That's one of the things you have to look out for when using rpms. Regards, Drew -----Original Message----- From: pkp team [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 23, 2001 12:48 PM To: [EMAIL PROTECTED] Subject: Can't locate DBD/mysql.pm Hi there.... pardon my interruption, but i'm having a problem and i've been stuck on this one for a while. I am installing DBI, DBD:Mysql on one of our linux server. Here's what i did: I installed perl-DBI.rpm, followed by perl-DBD-msql-mysql.rpm, ad finally zlib-devel.rpm I had no problem istalling the above. but when i run a test script (which is as follows): #!/usr/bin/perl -w use DBI; use strict; my $db = 'test'; my $host = 'localhost'; my $id = 'root'; my $pwd= ''; my $dbh = DBI->connect("DBI:mysql:$db:$host",$id,$pwd); if(!defined $dbh) { die "Can't connect: $DBI::errstr \n";} print "Connected!!\n"; I get the following error: "install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at (eval 1) line 3. Perhaps the DBD::mysql perl module hasn't been fully installed, or perhaps the capitalisation of 'mysql' isn't right. Available drivers: ADO, ExampleP, Multiplex, Proxy. at ./temp line 15" Please help me out here. I dont know what i'm doing wrong... i have a deadline to meet and i cant get anywhere unless i install this. thanks trevor _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
FW: Can't locate DBD/mysql.pm
Hamilton, Andrew Mr RAYTHEON 5 SIG CMD Thu, 23 Aug 2001 07:30:35 -0700
- Can't locate DBD/mysql.pm pkp team
- RE: Can't locate DBD/mysql.pm Hamilton, Andrew Mr RAYTHEON 5 SIG CMD
- Hamilton, Andrew Mr RAYTHEON 5 SIG CMD
