Manual installation of DBD::mysql

From: Jeff Malloy (JMalloy_at_Web-Tech.net)
Date: 11/18/04

  • Next message: Ian Harisay: "Re: Subclassing DBI, and PrintError messages"
    To: dbi-users@perl.org
    Date: Thu, 18 Nov 2004 11:56:05 -0500
    
    

    My attempts at the manual installation of DBD::mysql (v2.9004 or
    2.9005_3) have been unsuccessful. I have searched and implemented the
    suggestions from other respondents and the search of mail list threads
    but with no success.

    OS: Mac OSX Server v10.3.6
    Perl 5.8.1
    MySQL 4.0.18

    If anyone has encountered and resolved this problem even with another
    module, I greatly appreciate any assistance.

    Here the output from the 'perl Makefile.PL' and 'make Makefile'

    root# perl Makefile.PL
    I will use the following settings for compiling and testing:

       cflags (mysql_config) = -I/usr/include/mysql -O3
    -fno-omit-frame-pointer -arch i386 -arch ppc -pipe
       libs (mysql_config) = -arch i386 -arch ppc -pipe
    -L/usr/lib/mysql -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 ) =

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

    Unrecognized argument in LIBS ignored: '-arch'
    Unrecognized argument in LIBS ignored: 'i386'
    Unrecognized argument in LIBS ignored: '-arch'
    Unrecognized argument in LIBS ignored: 'ppc'
    Unrecognized argument in LIBS ignored: '-pipe'
    Using DBI 1.45 (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

    root# make -f Makefile
    cc -c -I/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/DBI/
    -I/usr/include/mysql -O3 -fno-omit-frame-pointer -arch i386 -arch ppc
    -pipe -g -g -pipe -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp
    -fno-strict-aliasing -I/usr/local/include -Os -DVERSION=\"2.9005_3\"
    -DXS_VERSION=\"2.9005_3\"
    "-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE"
    dbdimp.c
    cc: cannot read specs file for arch `i386'
    make: *** [dbdimp.o] Error 1


  • Next message: Ian Harisay: "Re: Subclassing DBI, and PrintError messages"

    Relevant Pages

    • Re: Installing Tk mod : where is $xlib defined?
      ... figure out where $xlib is set. ... but in Perl/Tk that is done thru the "perl Makefile.PL" command. ... For setting the libs and INC ... you don't like you can specify a version on the command line: ...
      (comp.lang.perl.tk)
    • Failed Xmms-Perl-0.12 build on FreeBSD 5.4-stable
      ... Checking if your kit is complete... ... Unrecognized argument in LIBS ignored: ... Writing Makefile for Xmms::Config ... make test had returned bad status, won't install without force ...
      (comp.lang.perl.misc)
    • Re: Stripping a libraries
      ... I play with Perl more than C, but it will break linking from my ... -d removes debugging symbols. ... For .so libs or elf executables, it will just remove uneeded debugging ... but I play one on earth. ...
      (comp.os.linux.misc)
    • Re: OT but: How to let Perl know of a library location
      ... tried setting the PERL5LIB to /usr/local/lib but that didn't help. ... However it seems as if perl (and php) looks for libs in /usr/sfw/lib so ...
      (comp.unix.solaris)
    • Re: GD make test problem
      ... I also after executing "perl Makefile.PL" ... Unrecognized argument in LIBS ignored: ...
      (comp.lang.perl.modules)