Perl 无法在Mac上安装DBD::mysql

Perl 无法在Mac上安装DBD::mysql,perl,cpan,dbd-mysql,Perl,Cpan,Dbd Mysql,(这是我第一次在这里发布,所以格式可能不正确,抱歉。) 我一直在尝试使用cpan在macOS Catalina上安装DBD::mysql,但尚未成功。我使用了perlbrew,尝试了mysql和mariaDB,但仍然没有成功。另外,我也在网上研究过不同的解决方案(可能也有点混乱),但也没有运气,所以我想看看是否有人能帮上忙。谢谢 日志如下: cpanm (App::cpanminus) 1.7044 on perl 5.030002 built for darwin-2level Work di

(这是我第一次在这里发布,所以格式可能不正确,抱歉。) 我一直在尝试使用cpan在macOS Catalina上安装DBD::mysql,但尚未成功。我使用了perlbrew,尝试了mysql和mariaDB,但仍然没有成功。另外,我也在网上研究过不同的解决方案(可能也有点混乱),但也没有运气,所以我想看看是否有人能帮上忙。谢谢

日志如下:

cpanm (App::cpanminus) 1.7044 on perl 5.030002 built for darwin-2level
Work directory is /Users/tingheithomas/.cpanm/work/1585766734.94805
You have make /usr/bin/make
You have /usr/local/bin/wget
You have /usr/bin/tar: bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.6
You have /usr/bin/unzip
Searching DBD::mysql () on cpanmetadb ...
--> Working on DBD::mysql
Fetching http://www.cpan.org/authors/id/D/DV/DVEEDEN/DBD-mysql-4.050.tar.gz
-> OK
Unpacking DBD-mysql-4.050.tar.gz
Entering DBD-mysql-4.050
Checking configure dependencies from META.json
Checking if you have Data::Dumper 0 ... Yes (2.174)
Checking if you have DBI 1.609 ... Yes (1.643)
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.34)
Checking if you have Devel::CheckLib 1.09 ... Yes (1.14)
Configuring DBD-mysql-4.050
Running Makefile.PL


PLEASE NOTE:

For 'make test' to run properly, you must ensure that the
database user 'tingheithomas' 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 'tingheithomas'@'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/opt/mysql@5.7/include/mysql
  embedded      (mysql_config) = 
  ldflags       (guessed     ) = 
  libs          (mysql_config) = -L/usr/local/opt/mysql@5.7/lib -lmysqlclient -lssl -lcrypto
  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     ) = tingheithomas

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 'ssl', 'crypto', aborting.
-> N/A
-> FAIL Configure failed for DBD-mysql-4.050. See /Users/tingheithomas/.cpanm/work/1585766734.94805/build.log for details.

另请参阅问题,其中还有关于安装过程的更多信息,如您是否安装了libssl和libcrypto?包括头文件吗?(使用软件包管理器时,通常可以在单独的
dev
devel
软件包中找到它们。)感谢Hakon Hægland!我以前读过教程,以前没有工作过。现在,经过第二次尝试,它终于开始工作了!在熬夜到凌晨3点两晚之后,我今天终于可以早点睡觉了。你让我开心!另请参阅问题,其中还有关于安装过程的更多信息,如您是否安装了libssl和libcrypto?包括头文件吗?(使用软件包管理器时,通常可以在单独的
dev
devel
软件包中找到它们。)感谢Hakon Hægland!我以前读过教程,以前没有工作过。现在,经过第二次尝试,它终于开始工作了!在熬夜到凌晨3点两晚之后,我今天终于可以早点睡觉了。你让我开心!