On 16 January 2019 07:27:39 James Brown via dbi-users <dbi-...@perl.org> wrote:
I have macOS Mojave and am not able to install DBD::mysql - can anyone help?Perl, mysql@5.7 and mysql-connector-c installed via Homebrew.I get:$ sudo /usr/local/bin/perl Makefile.PLPassword:PLEASE NOTE:For 'make test' to run properly, you must ensure that thedatabase user 'root' can connect to your MySQL serverand has the proper privileges that these tests require suchas 'drop table', 'create table', 'drop procedure', 'create procedure'as well as others.mysql> grant all privileges on test.* to 'root'@'localhost' identified by 's3kr1t';You can also optionally set the user to run 'make test' with:perl Makefile.PL --testuser=usernameI will use the following settings for compiling and testing:cflags (mysql_config) = -I/usr/local/Cellar/mysql-connector-c/6.1.11/includeembedded (guessed ) =ldflags (guessed ) =libs (mysql_config) = -L/usr/local/Cellar/mysql-connector-c/6.1.11/lib -lmysql_config (guessed ) = mysql_confignocatchstderr (default ) = 0nofoundrows (default ) = 0nossl (default ) = 0testdb (default ) = testtesthost (default ) =testpassword (default ) =testport (default ) =testsocket (default ) =testuser (guessed ) = rootTo change these settings, see 'perl Makefile.PL --help' and'perldoc DBD::mysql::INSTALL'.Checking if libs are available for compiling...Can't link/include C library '', aborting.Any suggestions?Thanks, James.
On 16 January 2019 7:39:23 am James Brown via dbi-users <dbi-...@perl.org> wrote:
Sure:$ /usr/local/bin/mysql_configUsage: /usr/local/bin/mysql_config [OPTIONS]Options:--cflags [-I/usr/local/Cellar/mysql-connector-c/6.1.11/include ]--cxxflags [-I/usr/local/Cellar/mysql-connector-c/6.1.11/include ]--include [-I/usr/local/Cellar/mysql-connector-c/6.1.11/include]--libs [-L/usr/local/Cellar/mysql-connector-c/6.1.11/lib -l ]--libs_r [-L/usr/local/Cellar/mysql-connector-c/6.1.11/lib -l ]--plugindir [/usr/local/Cellar/mysql-connector-c/6.1.11/lib/plugin]--socket [/tmp/mysql.sock]--port [0]--version [6.1.11]--variable=VAR VAR is one of:pkgincludedir [/usr/local/Cellar/mysql-connector-c/6.1.11/include]pkglibdir [/usr/local/Cellar/mysql-connector-c/6.1.11/lib]plugindir [/usr/local/Cellar/mysql-connector-c/6.1.11/lib/plugin]Thanks,James.