Re: macOS Mojave "Can't link/include C library ' ', aborting"
[email protected] (Daniël van Eeden) Wed, 16 Jan 2019 07:48:22 +0100
| Newsgroups | perl.dbi.users |
|---|---|
| Message-ID | <[email protected]> |
The --libs part of that looks wrong. I would expect something like "... -lmysqlclient -lssl -lcrypto”, not a -l without library name. Not sure why that might be. On 16 January 2019 7:39:23 am James Brown via dbi-users <[email protected]> wrote: > Sure: > > $ /usr/local/bin/mysql_config > Usage: /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. > > >> On 16 Jan 2019, at 5:31 pm, Daniël van Eeden <[email protected]> >> wrote: >> >> Can you share the output of mysql_config? >> >> On 16 January 2019 07:27:39 James Brown via dbi-users <[email protected]> >> wrote: >>> I have macOS Mojave and am not able to install DBD::mysql - can anyone help? >>> >>> Perl, [email protected] and mysql-connector-c installed via Homebrew. >>> >>> >>> I get: >>> >>> >>> $ sudo /usr/local/bin/perl Makefile.PL >>> Password: >>> >>> >>> PLEASE NOTE: >>> >>> For 'make test' to run properly, you must ensure that the >>> database user 'root' can connect to your MySQL server >>> and has the proper privileges that these tests require such >>> as '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=username >>> >>> I will use the following settings for compiling and testing: >>> >>> cflags (mysql_config) = >>> -I/usr/local/Cellar/mysql-connector-c/6.1.11/include >>> embedded (guessed ) = >>> ldflags (guessed ) = >>> libs (mysql_config) = >>> -L/usr/local/Cellar/mysql-connector-c/6.1.11/lib -l >>> 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 ) = root >>> >>> To 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.