[lug] Perl/MySQL issue

Steve Mathias smathias1 at qwest.net
Sat Feb 16 09:10:00 MST 2002


You can control which version of perl gets used in the first line of your 
scripts.  Make sure the first line is:
#!/usr/local/bin/perl -w
instead of:
#!/usr/bin/perl -w
and you should be set to go.


On Friday 15 February 2002 18:06, you wrote:
> 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
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug

More information about the LUG mailing list