David, I'm definitely NOT a MakeMaker expert, so I can't help with
why that is rejecting the static lib.  You probably already know this
method of solving shared library linking problems, but here it is
just in case you don't:

  Do these commands as "root"

  1) do a "locate mysqlclient.so"
       - the results will reveal something like this for example:

            /path/to/mysql/mysqlclient.so

  2) cd /etc
  3) edit ld.so.conf, and add the *directory* in which mysqlclient.so
     sits:
       - add "/path/to/mysql" line to ld.so.conf

  4) run "ldconfig" to relink to shared libraries

Then try running your DBI/MySQL app again, and hopefully it will
work.

HTH.

-- 
Hardy Merrill
Senior Software Engineer
Red Hat, Inc.

David Knox [[EMAIL PROTECTED]] wrote:
> Perl: 5.6.1
> OS: Solaris 2.8
> MySQL:3.23.45
> 
> I'm getting the dreaded:
> "failed:: can't load 'blib/arch/auto/DBD/mysql/msyql.so"
> I read in the documentation that this is happening because, even though
> the -L switch is pointing to the correct location, it can't load
> libmysqlclient.so. So I tried the static libmysqlclient.a. But, the
> Makefile.PL rejects it as an unknown switch.
> 
> I'm a bit confused as to why libmysqlclient.so can't be found when the
> switch points to the correct location. And, confused again about why
> ExtUtils::MakeMaker rejects the static lib.
> 
> Can someone help un-befuddle me?
> 
> -dk
>       David Knox
>       IONA Technologies, PLC
>       Principal Consultant
>       TBI Group CORBA/J2EE Practice
>       END 2 ANYWHERE
>       9145 W. Phillips Drive
>       Littleton, CO 80128
>       USA
> 
> 
>       Tel (303) 979-7817
>       Fax (303) 979-7861
>       Cell (303) 748-8906
>       [EMAIL PROTECTED]

Reply via email to