OS X 10.8.4 DBD::mysql build looking for libmysqlclient in wrong place?



Hey:

I'm trying to install DBD:mysql against DBI-1.56 and my own build of
perl
on a Macbook Pro running OS X 10.4.8. In a number of the tests run
during
the install I'm getting the error below. It seems to me that the
Dynaloader
is looking for libmysqlclient.15.dylib in the wrong place. It's
installed at

/usr/local/mysql/lib/mysql/libmysqlclient.15.dylib
and NOT at

/usr/local/mysql/lib/mysql/libmysqlclient.15.dylib
where the Dynalodaer is looking for it.

I've included some other details of my system below. Hope someone can
help.

Thanks,
Cosimo


upported_sql....install_driver(mysql) failed: Can't load '/Users/
cosimo/.cpan/build/DBD-mysql-4.004-BoUFWc/blib/arch/auto/DBD/mysql/
mysql.bundle' for module DBD::mysql: dlopen(/Users/cosimo/.cpan/build/
DBD-mysql-4.004-BoUFWc/blib/arch/auto/DBD/mysql/mysql.bundle, 2):
Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib
Referenced from: /Users/cosimo/.cpan/build/DBD-mysql-4.004-BoUFWc/
blib/arch/auto/DBD/mysql/mysql.bundle
Reason: image not found at /Users/cosimo/install/lib/perl5/5.8.8/
darwin-2level/DynaLoader.pm line 230.
at (eval 3) line 3
Compilation failed in require at (eval 3) line 3.
Perhaps a required shared library or dll isn't installed where
expected

---------------------------------------
PERL STUFF:
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=darwin, osvers=8.8.5, archname=darwin-2level
uname='darwin cosimos-computer.local 8.8.5 darwin kernel version
8.8.5: mon dec 11 19:39:17 pst 2006;
root:xnu-792.16.5.obj~1release_i386 i386 i386 '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp -fno-
strict-aliasing -pipe -Wdeclaration-after-statement',
optimize='-O3',
cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN -no-cpp-
precomp -fno-strict-aliasing -pipe -Wdeclaration-after-statement'
ccversion='', gccversion='4.0.1 (Apple Computer, Inc. build
5367)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define,
longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =''
libpth=/usr/lib
libs=-ldbm -ldl -lm -lc
perllibs=-ldl -lm -lc
libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false,
libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup'


Characteristics of this binary (from libperl):
Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO
Built under darwin
Compiled at May 9 2007 04:54:18
@INC:
/Users/cosimo/install/lib/perl5/5.8.8/darwin-2level
/Users/cosimo/install/lib/perl5/5.8.8
/Users/cosimo/install/lib/perl5/site_perl/5.8.8/darwin-2level
/Users/cosimo/install/lib/perl5/site_perl/5.8.8
/Users/cosimo/install/lib/perl5/site_perl
.

---------------------------------------
GCC STUFF
i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build
5367)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There
is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

mysql Ver 14.12 Distrib 5.0.41, for apple-darwin8.5.1 (i686) using
readline 5.0

---------------------------------------
MYSQL CONFIG STUFF FROM ABORTIVE "install DBD::mysql" from cpan shell:

will use the following settings for compiling and testing:

cflags (mysql_config) = -I/usr/local/mysql/include -Os -arch
i386 -fno-common
embedded (mysql_config) =
libs (mysql_config) = -L/usr/local/mysql/lib -lmysqlclient -
lz -lm
mysql_config (guessed ) = mysql_config
nocatchstderr (default ) = 0
nofoundrows (default ) = 0
ssl (guessed ) = 0
testdb (default ) = test
testhost (default )/ =
testpassword (default ) =
testsocket (default ) =
testuser (default ) =

A check that this is where I installed mysql 5.0.41:
$ /usr/local/mysql/bin/mysql -V
/usr/local/mysql/bin/mysql Ver 14.12 Distrib 5.0.41, for apple-
darwin8.5.1 (i686) using readline 5.0

.



Relevant Pages

  • Re: attempt to build 64 bit on Solaris fails
    ... > libraries needed to link with a 64-bit Tk. ... We were running a 32-bit version of Perl ... > Each section below is a summary of the commands used to install it. ...
    (comp.lang.perl.tk)
  • Re: attempt to build 64 bit on Solaris fails
    ... libraries needed to link with a 64-bit Tk. ... We were running a 32-bit version of Perl ... Each section below is a summary of the commands used to install it. ...
    (comp.lang.perl.tk)
  • Perl on Linux and SQL Server 2000 on Windows
    ... There was a time when I did a lot of searching on ways to use Perl ... sitting on Linux to connect SQL Server 2000 sitting on Windows. ... cpan> install DBI ... Install FreeTDS ...
    (comp.os.linux.misc)
  • RE: Please Help !!! Unable to install DBD-Oracle ( I am using perl 5.6 on solaris 8)
    ... Ron, I could be way off here, but the OP mayalready have Perl ... think the original issue was that he tried to use *PPM* to install ... I don't have any Solaris ... you are not the intended recipient, please notify the sender at Wipro ...
    (perl.dbi.users)
  • Re: Installing DBD::File via CPAN
    ... Do you use 'UNINST=1' in the build options for CPAN? ... >> Did you build Perl from source, or install via a RPM or binary distro? ... >>> sender of the delivery error by replying to this message, or notify us ...
    (perl.dbi.users)