I'm using mysql8 on Big Sur - it was installed with MacPorts. I've been having trouble installing DBD::mysql - both via CPAN and manually. The error message I get is:
Checking if libs are available for compiling...
Can't link/include C library 'zstd', aborting.
Some (possibly completely irrelevant) facts that might help - I'm groping in the dark here:
- I'm using /usr/bin/perl although the MacPorts Perl is shown as "active". @INC does not include anything in /opt
- I find the following in /opt/local/lib:
lrwxr-xr-x 1 root admin 19 Mar 6 12:30 libzstd.1.dylib -> libzstd.1.4.9.dylib
-rw-r--r-- 1 root admin 1112760 Mar 6 12:30 libzstd.a
lrwxr-xr-x 1 root admin 19 Mar 6 12:30 libzstd.dylib -> libzstd.1.4.9.dylib
- When I run
mysql_config
, I get the following output related to libraries:
--libs [-L/opt/local/lib/mysql8/mysql -lmysqlclient -lz -lzstd -lssl -lcrypto -lresolv]
Any hints? Many thanks in advance!