ellem has asked for the wisdom of the Perl Monks concerning the following question:

OK background:

FreeBSD 4.4
Comes with 5.00503, using CPAN I upgraded to 5.6.1 BUT I wanted it in /usr/local/ not /usr/ so now I have both.
So I edited /etc/profiles and now when I do:
which perl
I get:
/usr/local/bin/perl as expected.

OK so far so good.
I want to use a MySQL web interface I downloaded called MySQLMan. I chose it over phpMyAdmin to avoid all the php stuff. Great.

Here's the error:

Error loading required libraries

Reason: Can't locate DBD/mysql.pm 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 /usr/local/www/cgi-bin/mysql.cgi line 3146

So it appears that all is _not_ well with my Perl install(s) as this MySQLMan seems to be looking in the wrong place for my modules.
So am I (a) looking t this all wrong -- (b)foolish to have an old an a new Perl (I'd like to get rid of the 5.00503 but I don't know how... where is that dang Unwise.exe:)?) -- (c) completely insane?
--
ellem@optonline.net
There's more than one way to do it, just don't use my way.

Replies are listed 'Best First'.
Check Modules and Libraries Used - Re: Old Perl Install question (sort of)
by metadoktor (Hermit) on Feb 14, 2002 at 05:54 UTC
    First you should make sure that you actually have all of the modules that are used in MySQLMan. Next if the system is getting confused about where your Perl install is located then you may want to use this node by chromatic or use the following construct as defined in perlvar:
    use lib '/mylib/is/here/';

    metadoktor

    "The doktor is in."

Re: Old Perl Install question (sort of)
by little (Curate) on Feb 14, 2002 at 04:08 UTC
    Did you install DBI.pm ?
    Did you install DBD::mysql ?
    Did you spell it correctly when you use it?


    Have a nice day
    All decision is left to your taste
    Update
    Well, that was a quick shot and directly in my foot. Well, well.
    But the error you get indicates that Perl cannot find them along with your old nor your new Perl installation, _as I understand_ there is no problem for Unix to have different versions of Perl running at the same time.