Installing DBD::mysql on MacOSX 10.3.2 (panther)

Ask a Question related to Perl / CGI, Design and Development.

  1. #1

    Default Installing DBD::mysql on MacOSX 10.3.2 (panther)

    I am having great difficulty installing DBD::mysql on MacOSX 10.3.2
    Server (panther). The full build log is below. The command I used to
    install was:

    perl -MCPAN -e 'install "DBD::mysql"'

    I am using the recent version of mysql installed from FINK.

    Any ideas?



    CPAN: Storable loaded ok
    Going to read /Users/xadmin/.cpan/Metadata
    Database was generated on Fri, 16 Jan 2004 09:52:41 GMT
    LWP not available
    CPAN: Net::FTP loaded ok
    Fetching with Net::FTP:
    [url]ftp://archive.progeny.com/CPAN/authors/01mailrc.txt.gz[/url]
    Going to read /Users/xadmin/.cpan/sources/authors/01mailrc.txt.gz
    LWP not available
    Fetching with Net::FTP:
    [url]ftp://archive.progeny.com/CPAN/modules/02packages.details.txt.gz[/url]
    Going to read
    /Users/xadmin/.cpan/sources/modules/02packages.details.txt.gz
    Database was generated on Tue, 20 Jan 2004 09:53:29 GMT
    HTTP:ate not available
    LWP not available
    Fetching with Net::FTP:
    [url]ftp://archive.progeny.com/CPAN/modules/03modlist.data.gz[/url]
    Going to read /Users/xadmin/.cpan/sources/modules/03modlist.data.gz
    Going to write /Users/xadmin/.cpan/Metadata
    Running install for module DBD::mysql
    Running make for R/RU/RUDY/DBD-mysql-2.9003.tar.gz
    CPAN: Digest::MD5 loaded ok
    Checksum for
    /Users/xadmin/.cpan/sources/authors/id/R/RU/RUDY/DBD-mysql-2.9003.tar.gz
    ok
    Scanning cache /Users/xadmin/.cpan/build for sizes
    DBD-mysql-2.9003/
    DBD-mysql-2.9003/t/
    DBD-mysql-2.9003/t/mysql2.t
    DBD-mysql-2.9003/t/akmisc.t
    DBD-mysql-2.9003/t/60leaks.t
    DBD-mysql-2.9003/t/10dsnlist.t
    DBD-mysql-2.9003/t/ak-dbd.t
    DBD-mysql-2.9003/t/50chopblanks.t
    DBD-mysql-2.9003/t/mysql.t
    DBD-mysql-2.9003/t/lib.pl
    DBD-mysql-2.9003/t/40blobs.t
    DBD-mysql-2.9003/t/40nulls.t
    DBD-mysql-2.9003/t/insertid.t
    DBD-mysql-2.9003/t/40listfields.t
    DBD-mysql-2.9003/t/40bindparam.t
    DBD-mysql-2.9003/t/mysql.dbtest
    DBD-mysql-2.9003/t/dbdadmin.t
    DBD-mysql-2.9003/t/20createdrop.t
    DBD-mysql-2.9003/t/00base.t
    DBD-mysql-2.9003/t/30insertfetch.t
    DBD-mysql-2.9003/t/40numrows.t
    DBD-mysql-2.9003/t/50commit.t
    DBD-mysql-2.9003/t/mysql.mtest
    DBD-mysql-2.9003/MANIFEST
    DBD-mysql-2.9003/myld
    DBD-mysql-2.9003/dbdimp.c
    DBD-mysql-2.9003/lib/
    DBD-mysql-2.9003/lib/DBD/
    DBD-mysql-2.9003/lib/DBD/mysql/
    DBD-mysql-2.9003/lib/DBD/mysql/GetInfo.pm
    DBD-mysql-2.9003/lib/DBD/mysql/INSTALL.pod
    DBD-mysql-2.9003/lib/DBD/mysql.pm
    DBD-mysql-2.9003/lib/Mysql/
    DBD-mysql-2.9003/lib/Mysql/Statement.pm
    DBD-mysql-2.9003/lib/Bundle/
    DBD-mysql-2.9003/lib/Bundle/DBD/
    DBD-mysql-2.9003/lib/Bundle/DBD/mysql.pm
    DBD-mysql-2.9003/lib/Mysql.pm
    DBD-mysql-2.9003/dbdimp.h
    DBD-mysql-2.9003/mysql.xs
    DBD-mysql-2.9003/MANIFEST.SKIP
    DBD-mysql-2.9003/README
    DBD-mysql-2.9003/INSTALL.html
    DBD-mysql-2.9003/Makefile.PL
    DBD-mysql-2.9003/ChangeLog
    DBD-mysql-2.9003/constants.h
    DBD-mysql-2.9003/TODO
    Removing previously used /Users/xadmin/.cpan/build/DBD-mysql-2.9003

    CPAN.pm: Going to build R/RU/RUDY/DBD-mysql-2.9003.tar.gz

    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
    nocatchstderr (default ) = 0
    nofoundrows (default ) = 0
    ssl (guessed ) = 0
    testdb (default ) = test
    testhost (default ) =
    testpassword (default ) =
    testuser (default ) =

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

    Checking if your kit is complete...
    Looks good
    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.40 (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
    cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
    cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
    cp lib/Mysql.pm blib/lib/Mysql.pm
    cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
    cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
    cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm
    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 -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: cannot read specs file for arch `i386'
    make: *** [dbdimp.o] Error 1
    /usr/bin/make -- NOT OK
    Running make test
    Can't test without successful make
    Running make install
    make had returned bad status, install seems impossible
    Eric Guest

  2. Similar Questions and Discussions

    1. Photoshop and MacOsX Panther
      Hi I am currently upgrading my mac from macos 9.1 to macos x Panther At the moment I am using Photoshop version 5.0.2 and am wondering if this...
    2. Illustrator and MacOsX Panther
      Hi I am currently upgrading my mac from macos 9.1 to macos x panther. At the moment I am using Illustrator 10.0.3 and am wondering if this...
    3. Installing FHMX2004 on Panther
      I have just reinstalled EVERYTHING on my Mac (G4 450MHz), from scratch (no archiving, but a clean install). Nice clean drive, running 10.3.2 (also...
    4. installing Tk on macosx 10.2.6
      - installing Tk on macosx 10.2.6 with perl 5.6 hola i agree it is not a pure perl question yet but it will be one soon i downloaded...
    5. Problems installing panther!
      In article <je2Ta.510513$Vi5.13196575@news1.calgary.shaw.ca>, Frank <frankie@nowhere.com> wrote: Panther is dropping support for older G3...
  3. #2

    Default Re: Installing DBD::mysql on MacOSX 10.3.2 (panther)

    In article <1g7v12n.19szh9pq96hkoN%egusenet@verizon.net>, Eric
    <egusenet@verizon.net> wrote:
    > perl -MCPAN -e 'install "DBD::mysql"'
    might want an 'sudo' before that command.
    >
    > I am using the recent version of mysql installed from FINK.
    >
    > Any ideas?
    >
    fink might have installed the wrong version of MySQL. It appears that
    your version of MySQL thinks it is running on a Linux system.

    MySQL has a Mac OSX package prebulit. I've had much better luck with
    that version than I did with fink. YMMV
    >
    [snip ]
    >
    > 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
    and ^^^^^^^^
    > -L/usr/lib/mysql -lmysqlclient -lz -lm
    > nocatchstderr (default ) = 0
    > nofoundrows (default ) = 0
    > ssl (guessed ) = 0
    > testdb (default ) = test
    > testhost (default ) =
    > testpassword (default ) =
    > testuser (default ) =
    >
    > To change these settings, see 'perl Makefile.PL --help' and
    > 'perldoc INSTALL'.
    >
    --
    cp
    cp Guest

  4. #3

    Default Re: Installing DBD::mysql on MacOSX 10.3.2 (panther)

    cp <cpryce@nospam.pryce.net> wrote:
    > In article <1g7v12n.19szh9pq96hkoN%egusenet@verizon.net>, Eric
    > <egusenet@verizon.net> wrote:
    >
    > > perl -MCPAN -e 'install "DBD::mysql"'
    >
    > might want an 'sudo' before that command.
    Had already done a sudo -s :-)
    > fink might have installed the wrong version of MySQL. It appears that
    > your version of MySQL thinks it is running on a Linux system.
    Whether I use the mySQL that came with 10.3.2 Server or the Fink
    version, I see -arch i386.
    > MySQL has a Mac OSX package prebulit. I've had much better luck with
    > that version than I did with fink. YMMV
    Actually, the fink version works and I did get DBD::mysql installed.
    DBD::mysql did fail a couple of tests, but it does work.

    I basically needed to do the 'env' fix.

    <[url]http://www.macosxhints.com/article.php?story=20031015212910375&query=DB[/url]
    D%3A%3Amysql>



    Eric Guest

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139