List:MySQL and Perl« Previous MessageNext Message »
From:Rick Smith Date:April 1 2004 8:18pm
Subject:Mac OS X 10.3.3, PERL 5.8.1 and MySQL 4
View as plain text  
Hello,

I’ve installed Bundle::DBI sucessfully using CPAN, but I’m having problems
installing Bundle::DBD::mysql.  I’ve tried both CPAN and manually going through the
“perl Makefile.PL-make-make test-make install” sequence.  I can’t get
past the make part.  The output of commands is shown below.

OS: Mac OS X 10.3.3
Perl: 5.8.1
MySQL: 4.0.18-standard (installed in /usr/local/share/mysql)


Thanks,
Rick

[pbg3:share/mysql/bin] smithrd% uname -a
Darwin pbg3.loc 7.3.0 Darwin Kernel Version 7.3.0: Fri Mar  5 14:22:55 PST 2004;
root:xnu/xnu-517.3.15.obj~4/RELEASE_PPC  Power Macintosh powerpc
[pbg3:share/mysql/bin] smithrd% perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 1 RC3) configuration:
  Platform:
    osname=darwin, osvers=7.0, archname=darwin-thread-multi-2level
    uname='darwin hampsten 7.0 darwin kernel version 6.0: fri jul 25 16:58:41 pdt 2003;
root:xnu-344.frankd.rootsxnu-344.frankd~objrelease_ppc power macintosh powerpc '
    config_args='-ds -e -Dprefix=/usr -Dccflags=-g  -pipe  -Dldflags=-Dman3ext=3pm
-Duseithreads -Duseshrplib'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-g -pipe -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -I/usr/local/include',
    optimize='-Os',
    cppflags='-no-cpp-precomp -g -pipe -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='3.3 20030304 (Apple Computer, Inc. build 1495)',
gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='-L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib
    libs=-ldbm -ldl -lm -lc
    perllibs=-ldl -lm -lc
    libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, libperl=libperl.dylib
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-bundle -undefined dynamic_lookup -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
  Locally applied patches:
        RC3
  Built under darwin
  Compiled at Sep 12 2003 19:50:49
  @INC:
    /System/Library/Perl/5.8.1/darwin-thread-multi-2level
    /System/Library/Perl/5.8.1
    /Library/Perl/5.8.1/darwin-thread-multi-2level
    /Library/Perl/5.8.1
    /Library/Perl
    /Network/Library/Perl/5.8.1/darwin-thread-multi-2level
    /Network/Library/Perl/5.8.1
    /Network/Library/Perl
    .
[pbg3:share/mysql/bin] smithrd% ./mysql_config --cflags
-I/usr/local/share/mysql/include -O3 -fno-omit-frame-pointer
[pbg3:share/mysql/bin] smithrd% ./mysql_config --libs
-L/usr/local/share/mysql/lib -lmysqlclient -lz -lm
[pbg3:~/.cpan/build/DBD-mysql-2.9003] smithrd% perl Makefile.PL
--cflags=-I/usr/local/share/mysql/include/ --ssl
I will use the following settings for compiling and testing:

  cflags        (Users choice) = -I/usr/local/share/mysql/include/
  libs          (mysql_config) = -L/usr/local/share/mysql/lib -lmysqlclient -lz -lm
  nocatchstderr (default     ) = 0
  nofoundrows   (default     ) = 0
  ssl           (Users choice) = 1
  testdb        (default     ) = test
  testhost      (default     ) = 
  testpassword  (default     ) = 
  testuser      (default     ) = 

To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.

Using DBI 1.42 (for perl 5.008001 on darwin-thread-multi-2level) installed in
/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/DBI
Writing Makefile for DBD::mysql

[pbg3:~/.cpan/build/DBD-mysql-2.9003] smithrd% make
cc -c  -I/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/DBI
-I/usr/local/share/mysql/include/ -DDBD_MYSQL_WITH_SSL -g -pipe -pipe -fno-common
-DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -Os  
-DVERSION=\"2.9003\" -DXS_VERSION=\"2.9003\" 
"-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE"   dbdimp.c
cc -c  -I/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/DBI
-I/usr/local/share/mysql/include/ -DDBD_MYSQL_WITH_SSL -g -pipe -pipe -fno-common
-DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -Os  
-DVERSION=\"2.9003\" -DXS_VERSION=\"2.9003\" 
"-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE"   mysql.c
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.bundle
LD_RUN_PATH="/usr/lib" /usr/bin/perl myld MACOSX_DEPLOYMENT_TARGET=10.3 cc  -bundle
-undefined dynamic_lookup -L/usr/local/lib dbdimp.o mysql.o  -o
blib/arch/auto/DBD/mysql/mysql.bundle   -L/usr/local/share/mysql/lib -lmysqlclient -lz
-lm   
make: *** [blib/arch/auto/DBD/mysql/mysql.bundle] Error 1
[pbg3:~/.cpan/build/DBD-mysql-2.9003] smithrd% 


Thread
Mac OS X 10.3.3, PERL 5.8.1 and MySQL 4Rick Smith1 Apr
  • Re: Mac OS X 10.3.3, PERL 5.8.1 and MySQL 4Rudy Lippan1 Apr