[lug] Perl/MySQL issue

Justin glow at jackmoves.com
Fri Feb 15 18:06:28 MST 2002


I realized just recently that I have two version of perl on one of my 
servers, 5.6.0 and 5.6.1. My 5.6.0 install is an rpm, and the newer 
version came from upgrading/installing perl via CPAN.pm (I think). I 
have been trying to run some tests with MySQL (run-all-tests script) 
but it says I don't have DBI.pm installed, yet I know it's there on the 
5.6.1 install. Here is the error it gives me:
[root at oldschool sql-bench]# ./run-all-tests 
Can't locate DBI.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 .)
For some reason mysql is looking in the 5.6.0 installation, is there a 
way to make it look in the 5.6.1 install? If I do this though:
[root at oldschool sql-bench]# perl -e "print @INC;"
/usr/local/lib/perl5/5.6.1/i686-
linux/usr/local/lib/perl5/5.6.1/usr/local/lib/perl5/site_perl/5.6.1/i686
-linux/usr/local/lib/perl5/site_perl/5.6.1/usr/local/lib/perl5
It looks right? I'm pretty confused with perl and all this stuff since 
I've never used it before. Basically what I want to know, is if I rpm -
e my perl 5.6.0, will it screwup other things on the server? For 
instance my mod_perl? And how can I get mysql to reference the newer 
version of perl instead of the old one? TIA.

Justin

-----
glow at jackmoves.com
www.jackmoves.com



More information about the LUG mailing list