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

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

am 26.05.2007 21:20:44 von cosimo1953

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-2leve l
/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

Re: OS X 10.8.4 DBD::mysql build looking for libmysqlclient in wrongplace?

am 27.05.2007 04:03:50 von ron

cosimo1953@yahoo.com wrote:

Hi

> 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.

OK, I give up. What's the difference between those 2?

--
Ron Savage
ron@savage.net.au
http://savage.net.au/

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

am 27.05.2007 16:14:09 von cosimo1953

On May 26, 7:03 pm, r...@savage.net.au (Ron Savage) wrote:
> cosimo1...@yahoo.com wrote:
Sorry Ron,

You're right, no difference. A cutting and pasting mistake.

The place where it seems to be looking for the client library is

/usr/local/mysql/lib/mysql/libmysqlclient.15.dylib

as shown in the line "Library not loaded:" in the error message.

That is different -- there is an extra "mysql" subdirectory in
the path right before the filename.

Sorry for the inconvenience,
Cosimo

>
> Hi
>
> > 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.
>
> OK, I give up. What's the difference between those 2?
>
> --
> Ron Savage
> r...@savage.net.auhttp://savage.net.au/

Re: OS X 10.8.4 DBD::mysql build looking for libmysqlclient inwrong place?

am 13.06.2007 18:46:34 von pogo.possum

On Sat, 26 May 2007 12:20:44 -0700, cosimo1953 wrote:

> 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
>

Try this:

cd /usr/local/mysql/lib
sudo mkdir mysql
cd mysql/
sudo ln -s ../libmysqlclient.15.0.0.dylib libmysqlclient.15.0.0.dylib
sudo ln -s ../libmysqlclient.15.0.0.dylib libmysqlclient.15.dylib
sudo ln -s ../libmysqlclient.15.0.0.dylib libmysqlclient.dylib

you might have to restart after this.

Mark in Tigard, OR