p5.28-dbd-mysql fails to build

ximon ximon at ximon.karoo.co.uk
Tue Jan 19 15:52:15 UTC 2021


Hi, I have a new install of macports on 11.1 BigSur. mysql8 is installed and works, as does the mysql client, perl 5.28 installed also. When I try to install p5.28-dbd-mysql +mysql8 it fails with the below log messages.

I’m at a bit of a loss as to why it can’t link/include the mysql client lib as it’s location is plainly available and /usr/bin/clang exists.

Any thoughts? Could there be a built package for this port?

Hope I’m not missing something obvious...

Thanks, 

Simon.

:info:configure Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_perl_p5-dbd-mysql/p5.28-dbd-mysql/work/DBD-mysql-4.050" && /opt/local/bin/perl5.28 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/clang" LD="/usr/bin/clang" --mysql_config=/opt/local/lib/mysql8/bin/mysql_config 
:debug:configure system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_perl_p5-dbd-mysql/p5.28-dbd-mysql/work/DBD-mysql-4.050" && /opt/local/bin/perl5.28 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/clang" LD="/usr/bin/clang" --mysql_config=/opt/local/lib/mysql8/bin/mysql_config 
:info:configure PLEASE NOTE:
:info:configure For 'make test' to run properly, you must ensure that the
:info:configure database user 'root' can connect to your MySQL server
:info:configure and has the proper privileges that these tests require such
:info:configure as 'drop table', 'create table', 'drop procedure', 'create procedure'
:info:configure as well as others.
:info:configure mysql> grant all privileges on test.* to 'root'@'localhost' identified by 's3kr1t';
:info:configure You can also optionally set the user to run 'make test' with:
:info:configure perl Makefile.PL --testuser=username
:info:configure I will use the following settings for compiling and testing:
:info:configure   cflags        (mysql_config) = -I/opt/local/include/mysql8/mysql
:info:configure   embedded      (guessed     ) = 
:info:configure   ldflags       (guessed     ) = 
:info:configure   libs          (mysql_config) = -L/opt/local/lib/mysql8/mysql -lmysqlclient
:info:configure   mysql_config  (Users choice) = /opt/local/lib/mysql8/bin/mysql_config
:info:configure   nocatchstderr (default     ) = 0
:info:configure   nofoundrows   (default     ) = 0
:info:configure   nossl         (default     ) = 0
:info:configure   testdb        (default     ) = test
:info:configure   testhost      (default     ) = 
:info:configure   testpassword  (default     ) = 
:info:configure   testport      (default     ) = 
:info:configure   testsocket    (default     ) = 
:info:configure   testuser      (guessed     ) = root
:info:configure To change these settings, see 'perl Makefile.PL --help' and
:info:configure 'perldoc DBD::mysql::INSTALL'.
:info:configure Checking if libs are available for compiling...
:info:configure Can't link/include C library 'mysqlclient', aborting.
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_perl_p5-dbd-mysql/p5.28-dbd-mysql/work/DBD-mysql-4.050" && /opt/local/bin/perl5.28 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/clang" LD="/usr/bin/clang" --mysql_config=/opt/local/lib/mysql8/bin/mysql_config 
:info:configure Exit code: 2
:error:configure Failed to configure p5.28-dbd-mysql: configure failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
:debug:configure     while executing
:debug:configure "$procedure $targetname"
:error:configure See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_perl_p5-dbd-mysql/p5.28-dbd-mysql/main.log for details.



More information about the macports-users mailing list