我正在尝试让 Perl 的 Finance::Quote 模块在 MacOS 升级到 11.4 后正常工作。依赖项之一是 B::Keywords。B::Keywords 安装测试失败并出现以下错误:
> sudo cpan B::Keywords
[...]
Can't open /System/Library/Perl/5.30/darwin-thread-multi-2level/CORE/keywords.h: No such file or directory at t/11keywords.t line 25
Run Code Online (Sandbox Code Playgroud)
仔细研究后,我发现 keywords.h 存在于我的系统中的以下位置:
/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Perl/5.30/darwin-thread-multi-2level/CORE/keywords.h
有没有办法告诉 cpan(或 cpanm,或其他一些安装工具)在哪里查找这些标头?或者,任何其他方法来使其发挥作用将受到欢迎。