我正在尝试安装从 CPAN 手动下载的 perl 模块,但遇到了困难。
$perl Makefile.PL
Welcome to JSON (v.2.53)
=============================
If you install JSON::XS v.2.27, it makes JSON faster.
************************** CAUTION **************************
* This is 'JSON version 2' and there are many differences *
* to version 1.xx *
* Please check your applications useing old version. *
* See to 'INCOMPATIBLE CHANGES TO OLD VERSION' and 'TIPS' *
*************************************************************
Writing Makefile for JSON
$make
make: *** No rule to make target `/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/config.h', needed by `Makefile'. Stop.
有人遇到了同样的问题,但我无法让他的解决方案对我有用。
我已安装 Xcode 和命令行工具包。输入“which make”输出:
$which make
/Applications/Xcode.app/Contents/Developer/usr/bin/make
perl 输出:
$which perl
/usr/bin/perl
我做错了什么?这是 Perl 的问题吗?