Problems with updating CPAN / Perl (first step in Greylisting)

started at 20 Oct 2008 by dw
  • dw
    20 Oct 2008

    Richard, compatriots,

    Any clues on how to get this to work?

    ::

    sudo perl -MCPAN -e 'install Bundle::CPAN'
    Password:
    Sorry, we have to rerun the configuration dialog for CPAN.pm due to
    some missing parameters...

    Normally CPAN.pm keeps config variables in memory and changes need to
    be saved in a separate 'o conf commit' command to make them permanent
    between sessions. If you set the 'auto_commit' option to true, changes
    to a config variable are always automatically committed to disk.

    <auto_commit>
    Always commit changes to config variables to disk? [no]

    A Build.PL is run by perl in a separate process. Likewise we run
    './Build' and './Build install' in separate processes. If you have any
    parameters you want to pass to the calls, please specify them here.

    Typical frequently used settings:

    --install_base /home/xxx # different installation directory

    <mbuildpl_arg>
    Parameters for the 'perl Build.PL' command? []

    Parameters for the './Build' command? Setting might be:

    --extra_linker_flags -L/usr/foo/lib # non-standard library location

    <mbuild_arg>
    Your choice: []

    Do you want to use a different command for './Build install'? Sudo
    users will probably prefer:

    su root -c ./Build
    or
    sudo ./Build
    or
    /path1/to/sudo -u admin_account ./Build

    <mbuild_install_build_command>
    or some such. Your choice: [./Build]

    Parameters for the './Build install' command? Typical frequently used
    setting:

    --uninst 1 # uninstall conflicting files

    <mbuild_install_arg>
    Your choice: []

    Please remember to call 'o conf commit' to make the config permanent!

    CPAN: Storable loaded ok (v2.13)
    Going to read /Users/dw/.cpan/Metadata

    Database was generated on Sat, 18 Oct 2008 10:26:50 GMT
    CPAN: Time::HiRes loaded ok (v1.65)
    CPAN: YAML loaded ok (v0.66)
    Please check, if the URLs I found in your configuration file () are valid.
    The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/'

    Could not fetch authors/01mailrc.txt.gz
    Trying to get away with old file:
    6535958 148 -rw-r--r-- 1 0 501 147936 Oct 17 21:19 /Users/dw/.cpan/sources/authors/01mailrc.txt.gz
    Going to read /Users/dw/.cpan/sources/authors/01mailrc.txt.gz
    CPAN: Compress::Zlib loaded ok (v2.015)
    ............................................................................DONE
    Please check, if the URLs I found in your configuration file () are valid.
    The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/'

    Could not fetch modules/02packages.details.txt.gz
    Trying to get away with old file:
    6535963 684 -rw-r--r-- 1 0 501 699121 Oct 18 03:26 /Users/dw/.cpan/sources/modules/02packages.details.txt.gz
    Going to read /Users/dw/.cpan/sources/modules/02packages.details.txt.gz
    Database was generated on Sat, 18 Oct 2008 10:26:50 GMT
    HTTP::Date not available
    ............................................................................DONE
    Please check, if the URLs I found in your configuration file () are valid.
    The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/'

    Could not fetch modules/03modlist.data.gz
    Trying to get away with old file:
    6535964 152 -rw-r--r-- 1 0 501 153363 Oct 15 12:29 /Users/dw/.cpan/sources/modules/03modlist.data.gz
    Going to read /Users/dw/.cpan/sources/modules/03modlist.data.gz
    ............................................................................DONE
    Going to write /Users/dw/.cpan/Metadata
    Test::Harness is up to date (3.14).
    ExtUtils::CBuilder is up to date (0.24).
    ExtUtils::MakeMaker is up to date (6.46).
    Running install for module 'Module::Build'
    Running make for K/KW/KWILLIAMS/Module-Build-0.30.tar.gz
    CPAN: Digest::SHA loaded ok (v5.47)
    Checksum for /Users/dw/.cpan/sources/authors/id/K/KW/KWILLIAMS/Module-Build-0.30.tar.gz ok
    Module-Build-0.30/
    Module-Build-0.30/Build.PL
    Module-Build-0.30/Changes
    Module-Build-0.30/contrib/
    Module-Build-0.30/contrib/bash_completion.module-build
    Module-Build-0.30/INSTALL
    Module-Build-0.30/lib/
    Module-Build-0.30/lib/Module/
    Module-Build-0.30/lib/Module/Build/
    Module-Build-0.30/lib/Module/Build/API.pod
    Module-Build-0.30/lib/Module/Build/Authoring.pod
    Module-Build-0.30/lib/Module/Build/Base.pm
    Module-Build-0.30/lib/Module/Build/Compat.pm
    Module-Build-0.30/lib/Module/Build/Config.pm
    Module-Build-0.30/lib/Module/Build/Cookbook.pm
    Module-Build-0.30/lib/Module/Build/Dumper.pm
    Module-Build-0.30/lib/Module/Build/ModuleInfo.pm
    Module-Build-0.30/lib/Module/Build/Notes.pm
    Module-Build-0.30/lib/Module/Build/Platform/
    Module-Build-0.30/lib/Module/Build/Platform/aix.pm
    Module-Build-0.30/lib/Module/Build/Platform/Amiga.pm
    Module-Build-0.30/lib/Module/Build/Platform/cygwin.pm
    Module-Build-0.30/lib/Module/Build/Platform/darwin.pm
    Module-Build-0.30/lib/Module/Build/Platform/Default.pm
    Module-Build-0.30/lib/Module/Build/Platform/EBCDIC.pm
    Module-Build-0.30/lib/Module/Build/Platform/MacOS.pm
    Module-Build-0.30/lib/Module/Build/Platform/MPEiX.pm
    Module-Build-0.30/lib/Module/Build/Platform/os2.pm
    Module-Build-0.30/lib/Module/Build/Platform/RiscOS.pm
    Module-Build-0.30/lib/Module/Build/Platform/Unix.pm
    Module-Build-0.30/lib/Module/Build/Platform/VMS.pm
    Module-Build-0.30/lib/Module/Build/Platform/VOS.pm
    Module-Build-0.30/lib/Module/Build/Platform/Windows.pm
    Module-Build-0.30/lib/Module/Build/PodParser.pm
    Module-Build-0.30/lib/Module/Build/PPMMaker.pm
    Module-Build-0.30/lib/Module/Build/Version.pm
    Module-Build-0.30/lib/Module/Build/YAML.pm
    Module-Build-0.30/lib/Module/Build.pm
    Module-Build-0.30/Makefile.PL
    Module-Build-0.30/MANIFEST
    Module-Build-0.30/META.yml
    Module-Build-0.30/README
    Module-Build-0.30/scripts/
    Module-Build-0.30/scripts/config_data
    Module-Build-0.30/SIGNATURE
    Module-Build-0.30/t/
    Module-Build-0.30/t/basic.t
    Module-Build-0.30/t/bundled/
    Module-Build-0.30/t/bundled/Tie/
    Module-Build-0.30/t/bundled/Tie/CPHash.pm
    Module-Build-0.30/t/compat.t
    Module-Build-0.30/t/destinations.t
    Module-Build-0.30/t/ext.t
    Module-Build-0.30/t/extend.t
    Module-Build-0.30/t/files.t
    Module-Build-0.30/t/help.t
    Module-Build-0.30/t/install.t
    Module-Build-0.30/t/lib/
    Module-Build-0.30/t/lib/DistGen.pm
    Module-Build-0.30/t/lib/MBTest.pm
    Module-Build-0.30/t/manifypods.t
    Module-Build-0.30/t/mbyaml.t
    Module-Build-0.30/t/metadata.t
    Module-Build-0.30/t/metadata2.t
    Module-Build-0.30/t/moduleinfo.t
    Module-Build-0.30/t/new_from_context.t
    Module-Build-0.30/t/notes.t
    Module-Build-0.30/t/par.t
    Module-Build-0.30/t/parents.t
    Module-Build-0.30/t/pod_parser.t
    Module-Build-0.30/t/ppm.t
    Module-Build-0.30/t/runthrough.t
    Module-Build-0.30/t/script_dist.t
    Module-Build-0.30/t/signature.t
    Module-Build-0.30/t/test_file_exts.t
    Module-Build-0.30/t/test_type.t
    Module-Build-0.30/t/test_types.t
    Module-Build-0.30/t/tilde.t
    Module-Build-0.30/t/use_tap_harness.t
    Module-Build-0.30/t/versions.t
    Module-Build-0.30/t/xs.t
    CPAN: File::Temp loaded ok (v0.20)

    CPAN.pm: Going to build K/KW/KWILLIAMS/Module-Build-0.30.tar.gz

    # running Build.PL
    /usr/bin/perl Build.PL
    Checking whether your kit is complete...
    Looks good

    Checking prerequisites...
    * Optional prerequisite Module::Signature is not installed
    * Optional prerequisite ExtUtils::ParseXS is not installed
    * Optional prerequisite version is not installed
    * Optional prerequisite Pod::Readme is not installed

    ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions
    of the modules indicated above before proceeding with this installation

    Checking features:
    manpage_support....enabled
    YAML_support.......enabled
    C_support..........enabled
    * Optional prerequisite ExtUtils::ParseXS is not installed
    HTML_support.......enabled

    Creating new 'Build' script for 'Module-Build' version '0.30'
    Warning: PREREQ_PM mentions Test::Harness more than once, last mention wins at /System/Library/Perl/5.8.6/CPAN.pm line 8855, <GEN53> line 1.
    /usr/bin/perl Build --makefile_env_macros 1
    Copying lib/Module/Build/Version.pm -> blib/lib/Module/Build/Version.pm
    Copying lib/Module/Build/Platform/darwin.pm -> blib/lib/Module/Build/Platform/darwin.pm
    Copying lib/Module/Build/Platform/MacOS.pm -> blib/lib/Module/Build/Platform/MacOS.pm
    Copying lib/Module/Build/Notes.pm -> blib/lib/Module/Build/Notes.pm
    Copying lib/Module/Build/Dumper.pm -> blib/lib/Module/Build/Dumper.pm
    Copying lib/Module/Build/Compat.pm -> blib/lib/Module/Build/Compat.pm
    Copying lib/Module/Build/Platform/RiscOS.pm -> blib/lib/Module/Build/Platform/RiscOS.pm
    Copying lib/Module/Build/PodParser.pm -> blib/lib/Module/Build/PodParser.pm
    Copying lib/Module/Build/Platform/VOS.pm -> blib/lib/Module/Build/Platform/VOS.pm
    Copying lib/Module/Build/Platform/Windows.pm -> blib/lib/Module/Build/Platform/Windows.pm
    Copying lib/Module/Build/Platform/Unix.pm -> blib/lib/Module/Build/Platform/Unix.pm
    Copying lib/Module/Build/ModuleInfo.pm -> blib/lib/Module/Build/ModuleInfo.pm
    Copying lib/Module/Build/Platform/Amiga.pm -> blib/lib/Module/Build/Platform/Amiga.pm
    Copying lib/Module/Build/Config.pm -> blib/lib/Module/Build/Config.pm
    Copying lib/Module/Build/Platform/os2.pm -> blib/lib/Module/Build/Platform/os2.pm
    Copying lib/Module/Build/Base.pm -> blib/lib/Module/Build/Base.pm
    Copying lib/Module/Build/Platform/VMS.pm -> blib/lib/Module/Build/Platform/VMS.pm
    Copying lib/Module/Build/Platform/MPEiX.pm -> blib/lib/Module/Build/Platform/MPEiX.pm
    Copying lib/Module/Build/Platform/cygwin.pm -> blib/lib/Module/Build/Platform/cygwin.pm
    Copying lib/Module/Build/Platform/EBCDIC.pm -> blib/lib/Module/Build/Platform/EBCDIC.pm
    Copying lib/Module/Build.pm -> blib/lib/Module/Build.pm
    Copying lib/Module/Build/PPMMaker.pm -> blib/lib/Module/Build/PPMMaker.pm
    Copying lib/Module/Build/Platform/aix.pm -> blib/lib/Module/Build/Platform/aix.pm
    Copying lib/Module/Build/Cookbook.pm -> blib/lib/Module/Build/Cookbook.pm
    Copying lib/Module/Build/Platform/Default.pm -> blib/lib/Module/Build/Platform/Default.pm
    Copying lib/Module/Build/YAML.pm -> blib/lib/Module/Build/YAML.pm
    Copying lib/Module/Build/Authoring.pod -> blib/lib/Module/Build/Authoring.pod
    Copying lib/Module/Build/API.pod -> blib/lib/Module/Build/API.pod
    Copying scripts/config_data -> blib/script/config_data
    Deleting blib/script/config_data.bak
    Writing config notes to blib/lib/Module/Build/ConfigData.pm
    Manifying blib/script/config_data -> blib/bindoc/config_data.1
    Manifying blib/lib/Module/Build/Platform/Unix.pm -> blib/libdoc/Module::Build::Platform::Unix.3pm
    Manifying blib/lib/Module/Build/Platform/EBCDIC.pm -> blib/libdoc/Module::Build::Platform::EBCDIC.3pm
    Manifying blib/lib/Module/Build/Platform/MacOS.pm -> blib/libdoc/Module::Build::Platform::MacOS.3pm
    Manifying blib/lib/Module/Build.pm -> blib/libdoc/Module::Build.3pm
    Manifying blib/lib/Module/Build/Platform/Amiga.pm -> blib/libdoc/Module::Build::Platform::Amiga.3pm
    Manifying blib/lib/Module/Build/ConfigData.pm -> blib/libdoc/Module::Build::ConfigData.3pm
    Manifying blib/lib/Module/Build/Notes.pm -> blib/libdoc/Module::Build::Notes.3pm
    Manifying blib/lib/Module/Build/Platform/cygwin.pm -> blib/libdoc/Module::Build::Platform::cygwin.3pm
    Manifying blib/lib/Module/Build/ModuleInfo.pm -> blib/libdoc/Module::Build::ModuleInfo.3pm
    Manifying blib/lib/Module/Build/YAML.pm -> blib/libdoc/Module::Build::YAML.3pm
    Manifying blib/lib/Module/Build/Platform/Windows.pm -> blib/libdoc/Module::Build::Platform::Windows.3pm
    Manifying blib/lib/Module/Build/Platform/MPEiX.pm -> blib/libdoc/Module::Build::Platform::MPEiX.3pm
    Manifying blib/lib/Module/Build/PPMMaker.pm -> blib/libdoc/Module::Build::PPMMaker.3pm
    Manifying blib/lib/Module/Build/Platform/VOS.pm -> blib/libdoc/Module::Build::Platform::VOS.3pm
    Manifying blib/lib/Module/Build/Platform/RiscOS.pm -> blib/libdoc/Module::Build::Platform::RiscOS.3pm
    Manifying blib/lib/Module/Build/API.pod -> blib/libdoc/Module::Build::API.3pm
    Manifying blib/lib/Module/Build/Platform/Default.pm -> blib/libdoc/Module::Build::Platform::Default.3pm
    Manifying blib/lib/Module/Build/Cookbook.pm -> blib/libdoc/Module::Build::Cookbook.3pm
    Manifying blib/lib/Module/Build/Platform/aix.pm -> blib/libdoc/Module::Build::Platform::aix.3pm
    Manifying blib/lib/Module/Build/Platform/darwin.pm -> blib/libdoc/Module::Build::Platform::darwin.3pm
    Manifying blib/lib/Module/Build/Platform/os2.pm -> blib/libdoc/Module::Build::Platform::os2.3pm
    Manifying blib/lib/Module/Build/Platform/VMS.pm -> blib/libdoc/Module::Build::Platform::VMS.3pm
    Manifying blib/lib/Module/Build/Base.pm -> blib/libdoc/Module::Build::Base.3pm
    Manifying blib/lib/Module/Build/Authoring.pod -> blib/libdoc/Module::Build::Authoring.3pm
    Manifying blib/lib/Module/Build/Compat.pm -> blib/libdoc/Module::Build::Compat.3pm
    KWILLIAMS/Module-Build-0.30.tar.gz
    /usr/bin/make -- OK
    Running make test
    /usr/bin/perl Build --makefile_env_macros 1 test
    t/basic...............ok
    t/compat..............ok
    t/destinations........ok
    t/ext.................ok
    t/extend..............ok
    t/files...............ok
    t/help................ok
    t/install.............ok
    t/manifypods..........ok
    t/mbyaml..............ok
    t/metadata............ok
    t/metadata2...........ok
    t/moduleinfo..........ok
    t/new_from_context....ok
    t/notes...............ok
    t/par.................skipped: PAR::Dist 0.17 or up not installed to check .par's.
    t/parents.............ok
    t/pod_parser..........ok
    t/ppm.................ok
    t/runthrough..........ok
    t/script_dist.........ok
    t/signature...........skipped: $ENV{TEST_SIGNATURE} is not set
    t/test_file_exts......ok
    t/test_type...........ok
    t/test_types..........ok
    t/tilde...............1/17
    # Failed test at t/tilde.t line 54.
    # got: '/var/root'
    # expected: '/Users/dw'
    t/tilde...............4/17
    # Failed test at t/tilde.t line 56.
    # got: '/var/root/foo'
    # expected: '/Users/dw/foo'

    # Failed test at t/tilde.t line 62.
    # got: '/var/root/ foo'
    # expected: '/Users/dw/ foo'

    # Failed test at t/tilde.t line 64.
    # got: '/var/root/fo o'
    # expected: '/Users/dw/fo o'

    # Failed test at t/tilde.t line 68.
    # got: '/var/root'
    # expected: '/Users/dw'
    t/tilde...............11/17
    # Failed test at t/tilde.t line 74.
    # got: '/var/root/lib'
    # expected: '/Users/dw/lib'

    # Failed test at t/tilde.t line 76.
    # got: '/var/root/html'
    # expected: '/Users/dw/html'

    # Failed test at t/tilde.t line 77.
    # got: '/var/root/html'
    # expected: '/Users/dw/html'

    # Failed test at t/tilde.t line 80.
    # got: '/var/root/lib'
    # expected: '/Users/dw/lib'

    # Failed test at t/tilde.t line 83.
    # got: '/var/root'
    # expected: '/Users/dw'
    # Looks like you failed 10 tests of 17.
    t/tilde............... Dubious, test returned 10 (wstat 2560, 0xa00)
    Failed 10/17 subtests
    t/use_tap_harness.....ok
    t/versions............ok
    t/xs..................ok

    Test Summary Report
    -------------------
    t/ext (Wstat: 0 Tests: 186 Failed: 0)
    TODO passed: 17
    t/tilde (Wstat: 2560 Tests: 17 Failed: 10)
    Failed tests: 3-4, 7-8, 10-15
    Non-zero exit status: 10
    Files=29, Tests=995, 89 wallclock secs ( 1.16 usr 0.39 sys + 56.18 cusr 23.35 csys = 81.08 CPU)
    Result: FAIL
    Failed 1/29 test programs. 10/995 subtests failed.
    make: *** [test] Error 255
    KWILLIAMS/Module-Build-0.30.tar.gz
    /usr/bin/make test -- NOT OK
    //hint// to see the cpan-testers results for installing this module, try:
    reports KWILLIAMS/Module-Build-0.30.tar.gz
    Running make install
    make test had returned bad status, won't install without force
    File::Spec is up to date (3.2701).
    File::Temp is up to date (0.20).
    Scalar::Util is up to date (1.19).
    Test::More is up to date (0.84).
    Data::Dumper is up to date (2.121_02).
    Digest::SHA is up to date (5.47).
    File::HomeDir is up to date (0.82).
    Compress::Raw::Zlib is up to date (2.015).
    IO::Compress::Base is up to date (2.015).
    IO::Uncompress::Gunzip is up to date (2.015).
    Compress::Zlib is up to date (2.015).
    IO::Zlib is up to date (1.09).
    Archive::Tar is up to date (1.40).
    Archive::Zip is up to date (1.26).
    Net::Cmd is up to date (2.29).
    Net::FTP is up to date (2.77).
    Term::ReadKey is up to date (2.30).
    Term::ReadLine::Perl is up to date (1.0302).
    YAML is up to date (0.66).
    Text::Glob is up to date (0.08).
    CPAN is up to date (1.9301).
    File::Which is up to date (0.05).

  • Richard
    20 Oct 2008

    It's allright, some test failed because of using the wrong directory nothing really exciting. At the end you can see everything is up to date as required. Please continue as documented. Please let me know if anything else goes wrong.

  • dw
    21 Oct 2008

    Ah, I was thinking those error caused my later errors, which arose from entering the command at the cpan> prompt:

    force install Bundle::DBD::mysql'

    .... the final ' shouldn't be there. I'll try again.

  • Richard
    21 Oct 2008

    Thanks, I removed the ' from the command. It was my mistake, sorry...

  • dw
    21 Oct 2008

    Hmm. (Sorry for being Perl-illiterate, hopefully this will help other people, too ;)

    Results from the corrected command:

    sudo perl -MCPAN -e shell
    Password:

    cpan shell -- CPAN exploration and modules installation (v1.9301)
    ReadLine support enabled

    cpan[1]> force install Bundle::DBD::mysql
    CPAN: Storable loaded ok (v2.13)
    Going to read /Users/dw/.cpan/Metadata
    Database was generated on Sat, 18 Oct 2008 10:26:50 GMT
    CPAN: Time::HiRes loaded ok (v1.65)
    LWP not available
    No external ftp command available

    CPAN: YAML loaded ok (v0.66)
    Please check, if the URLs I found in your configuration file
    (http://www.cpan.org) are valid. The urllist can be edited. E.g. with 'o
    conf urllist push ftp://myurl/'

    Could not fetch authors/id/C/CA/CAPTTOFU/DBD-mysql-4.008.tar.gz
    Giving up on '/Users/dw/.cpan/sources/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.008.tar.gz'
    Note: Current database in memory was generated on Sat, 18 Oct 2008 10:26:50 GMT
    Catching error: "\cJ\cI...propagated at /System/Library/Perl/5.8.6/CPAN.pm line 3417.\cJ" at /System/Library/Perl/5.8.6/CPAN.pm line 359
    CPAN::shell() called at -e line 1

    cpan[2]>
    cpan[2]> o conf urllist
    urllist
    0 [http://www.cpan.org]
    Type 'o conf' to view all configuration items

    cpan[3]>

  • Richard
    22 Oct 2008

    No problem, I'm not that Perl-illiterate myself. It looks like the configuration part of the exercise didn't go according to plan. You'll need to reset your CPAN environment.

    sudo perl -MCPAN -e shell
    cpan> o conf init

    Then select everything default, except the locaiton stuff of where you are. You'll need to enter that to get the proper download sites.

  • dw
    28 Oct 2008

    Okay, more issues ;)

    There were some error messages when I used the command

    force install Bundle::DBD::mysql

    ... namely, at the end of the output (which seemed to go okay until this):

    Checking if your kit is complete...
    Looks good
    Using DBI 1.607 (for perl 5.008006 on darwin-thread-multi-2level) installed in /Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBI/
    Writing Makefile for DBD::mysql
    cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
    cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.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
    cc -c  -I/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBI -I/usr/local/mysql/include/mysql -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -DDBD_MYSQL_INSERT_ID_IS_GOOD -g  -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -Os   -DVERSION=\"4.010\" -DXS_VERSION=\"4.010\"  "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE"   dbdimp.c
    dbdimp.c: In function 'mysql_dr_connect':
    dbdimp.c:1536: error: 'ulong' undeclared (first use in this function)
    dbdimp.c:1536: error: (Each undeclared identifier is reported only once
    dbdimp.c:1536: error: for each function it appears in.)
    dbdimp.c:1536: error: parse error before numeric constant
    dbdimp.c:1538: error: parse error before numeric constant
    dbdimp.c:1653: error: parse error before numeric constant
    make: *** [dbdimp.o] Error 1
      CAPTTOFU/DBD-mysql-4.010.tar.gz
      /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
    Failed during this command:
     CAPTTOFU/DBD-mysql-4.010.tar.gz              : make NO

    ---

    I went ahead and tried the following commands, and ended up with mail.log errors when sqlgrey tried to run:

    sqlgrey: No such group "sqlgrey"\n\n at line 470 in file /Library/Perl/5.8.6/Net/Server.pm\n

  • Richard
    01 Nov 2008

    Did you create the user sqlgrey and edit the configuration ?

    It is allright for the mysql install to fail, it fails at the test fase where it attempts to connect to mysql as root without a password which isn't proper. Your Mysql installation should be more secure than that. Only the test phase fails, that is why we use the 'force' option.

  • dw
    04 Nov 2008

    Those are now set, somehow I didn't save the configuration changes.

    Still not working, though. I've checked the database after running "sudo sqlgrey -d &", and no tables have been created. There is a .pid file, however.

    In the console.log, there is this:

    postfix/smtpd[5621]: mysql plugin couldnt connect to any host\n

    and mail.log says:

    install_driver(mysql) failed: Can't locate DBD/mysql.pm in .... a long list of folders

  • Richard
    05 Nov 2008

    Hmm, looking through your earlier post I now see there was a strange compilation error for the Mysql part of DBD. That is the cause of your current problem.

    Perhaps you could see if you could solve the problem and try to install the DBD stuff again ? I'll see if I can find some answers...

  • Richard
    05 Nov 2008

    Try this: http://jayallen.org/journey/2006/04/dbd-mysql-build-problems-on-mac-book-pro

  • dw
    06 Nov 2008

    The DBD/mysql errors were the key, it seems to be working now. Thanks again, Richard.

    I found the following conversation at mysql:

    http://forums.mysql.com/read.php?51,134560,136749#msg-136749

    which said that "ulong" needs to be defined:

    ***

    Re: Installing DBD:mysql - ulong needs define/typedef
    Posted by: linh pham ()
    Date: January 25, 2007 08:01PM

    Thanks for the tip.

    I got it installed with the modification to the file /usr/local/mysql/mysql_config, line 106; from:
    cflags="-I$pkgincludedir -Os -arch i386 -fno-common " #note: end space!

    to:
    cflags="-I$pkgincludedir -Os -arch i386 -fno-common -Dulong='unsigned long'" #note: end space!

    ***

    btw, my mysql_config file is in /usr/local/mysql/bin/

Reply

You must log in to post.