perl DB modules for snow leopard 10.6.8

Elim Qiu elim.qiu at
Mon Aug 6 07:40:23 PDT 2012

Hi All,
I need perl database module for mysql. But my current perl not support that:
aMac:mwf elim$ perl
dyld: lazy symbol binding failed: Symbol not found: _mysql_init
  Referenced from:
  Expected in: flat namespace

dyld: Symbol not found: _mysql_init
  Referenced from:
  Expected in: flat namespace
I heard macports can fix that and like to get your inputs on that.

Do I need to remove any perl things by apple? What version of perl should I
install and how to use macports to do that? Is macport alone can fix my
perl-mysql problem (I have  5.1.61 MySQL Community Server (GPL) running
with php apps ok.)?

Thanks a lot!

========== My current perl info =================:
aMac:~ elim$ perl -V
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
    osname=darwin, osvers=10.0, archname=darwin-thread-multi-2level
    uname='darwin 10.0 darwin kernel version 10.0.0d8: tue
may 5 19:29:59 pdt 2009; root:xnu-1437.2~2release_i386 i386 '
    config_args='-ds -e -Dprefix=/usr -Dccflags=-g  -pipe  -Dldflags=
-Dman3ext=3pm -Duseithreads -Duseshrplib -Dinc_version_list=none
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
    cc='gcc-4.2', ccflags ='-arch x86_64 -arch i386 -arch ppc -g -pipe
-fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include',
    cppflags='-g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing
    ccversion='', gccversion='4.2.1 (Apple Inc. build 5646)',
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='gcc-4.2 -mmacosx-version-min=10.6', ldflags ='-arch x86_64 -arch
i386 -arch ppc -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib
    libs=-ldbm -ldl -lm -lutil -lc
    perllibs=-ldl -lm -lutil -lc
    libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true,
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-arch x86_64 -arch i386 -arch ppc -bundle
-undefined dynamic_lookup -L/usr/local/lib'

Characteristics of this binary (from libperl):
                        USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
                        USE_PERLIO USE_REENTRANT_API
  Locally applied patches:
/Library/Perl/Updates/<version> comes before system perl directories
installprivlib and installarchlib points to the Updates directory
  Built under darwin
  Compiled at Jun 24 2009 00:35:27
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-users mailing list