我正在嘗試安裝從 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 的問題嗎?