There were lots of warnings that threw me off, but I suspect they can all be ignored. I think this here is the key error:
# Failed test 'use DBD::mysql;' # at t/00base.t line 15. # Tried to use 'DBD::mysql'. # Error: Can't load '/private/var/root/.cpan/build/DBD-mysql-4.05 +0-8/blib/arch/auto/DBD/mysql/mysql.bundle' for module DBD::mysql: dlo +pen(/private/var/root/.cpan/build/DBD-mysql-4.050-8/blib/arch/auto/DB +D/mysql/mysql.bundle, 0x0002): Library not loaded: @rpath/libmysqlcli +ent.21.dylib # Referenced from: <7D546A82-F230-3186-ADBB-6393EF2F59D5> /private/v +ar/root/.cpan/build/DBD-mysql-4.050-8/blib/arch/auto/DBD/mysql/mysql. +bundle # Reason: tried: '/System/Volumes/Preboot/Cryptexes/OS@rpath/libmysq +lclient.21.dylib' (no such file), '/usr/lib/libmysqlclient.21.dylib' +(no such file, not in dyld cache), (security policy does not allow @ +path expansion) at /System/Library/Perl/5.30/darwin-thread-multi-2lev +el/DynaLoader.pm line 197. # at t/00base.t line 15.
So it does appear to be library related. On Ventura, /usr/lib is read-only. It's not looking for the dylib at /usr/local/mysql/lib, even though that is the path in mysql_config.
I will use the following settings for compiling and testing: cflags (mysql_config) = -I/usr/local/mysql/include embedded (guessed ) = ldflags (guessed ) = libs (mysql_config) = -L/usr/local/mysql/lib -lmysqlclient +-lssl -lcrypto -lresolv mysql_config (guessed ) = mysql_config nocatchstderr (default ) = 0 nofoundrows (default ) = 0 nossl (default ) = 0 testdb (default ) = test testhost (default ) = testpassword (default ) = testport (default ) = testsocket (default ) = testuser (guessed ) = len

In reply to Re^2: DBD::mysql on MacOS Ventura (AArch64) by lschult2
in thread DBD::mysql on MacOS Ventura (AArch64) by lschult2

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.