2010-08-27 162 views
0

我在運行OSX Snow Leopard的Mac上使用Zend Server CE作爲我的開發環境。我需要調整MySQL並在過去的Linux服務器上使用mysqltuner.pl來進行預測試和後測。在Mac OSX上運行mysqltuner

我下載了劇本,當我運行它得到了以下錯誤:

couldn't find diagnostic data in /System/Library/Perl/5.10.0/pods/perldiag.pod /Library/Perl/Updates/5.10.0 /System/Library/Perl/5.10.0/darwin-thread-multi-2level /System/Library/Perl/5.10.0 /Library/Perl/5.10.0/darwin-thread-multi-2level /Library/Perl/5.10.0 /Network/Library/Perl/5.10.0/darwin-thread-multi-2level /Network/Library/Perl/5.10.0 /Network/Library/Perl /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level /System/Library/Perl/Extras/5.10.0 . ./mysqltuuner.pl at /System/Library/Perl/5.10.0/diagnostics.pm line 268, <POD_DIAG> line 647. 
Compilation failed in require at ./mysqltuuner.pl line 42, <POD_DIAG> line 647. 
BEGIN failed--compilation aborted at ./mysqltuuner.pl line 42, <POD_DIAG> line 647. 

雪豹有Perl和我已經安裝了Xcode開發工具。

它看起來像我缺少一些Perl模塊。我曾嘗試CPAN這些文件,但我不是Perl專家,我想我現在可能已經搞砸了我的Perl安裝。

任何想法???

+0

嘆息我希望蘋果會趕快發貨並且已經發貨perl5.10.1 ... 5.10.0太破碎了。 – Ether 2010-08-27 20:56:25

+0

舉報此爲Apple的一個bug – 2010-08-28 19:15:20

回答

1

看起來像是在使用診斷模塊,它需要perl文檔正常工作。我猜測perl文檔是perl本身在OS X中的一個可單獨安裝的組件。

+0

因此,建議是在代碼中找到'use diagnostics'並將其註釋掉,然後至少這個障礙將被克服。 – Grrrr 2010-08-27 20:34:45

+1

不,建議是安裝perl文檔。 – ysth 2010-08-27 20:44:32