首页 > 解决方案 > 在 MacOS catalina 中安装 Tk 模块 perl 时出现问题

问题描述

在 MacOS catalina 10.15.6 中从 perl 安装 Tk 模块时出现以下错误

cpan install Tk

我得到的错误


Cannot find '/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE/perl.h' have you installed /usr/bin/perl?
Compilation failed in require at Makefile.PL line 37.
BEGIN failed--compilation aborted at Makefile.PL line 39.
Warning: No success on command[/usr/bin/perl Makefile.PL]
  SREZIC/Tk-804.035.tar.gz
  /usr/bin/perl Makefile.PL -- NOT OK
Running make test
  Make had some problems, won't test
Running make install
  Make had some problems, won't install
Could not read metadata file. Falling back to other methods to determine prerequisites

你能帮我知道这里发生了什么吗?

标签: perltkperl-modulecpan

解决方案


推荐阅读