![](/img/trans.png)
[英]How do you install perl DBD::Oracle on OSX Snow Leopard 10.6
[英]How do I install the Perl DateTime module on Mac OSX 10.6
好的,我知道如何使用cpan安裝Perl模塊並且已經使用了多年。 但是當我嘗試在這個特定的mac上安裝DateTime模塊時,它失敗了,聲稱它找不到編譯器。
以下是嘗試安裝其中一個先決條件的一些輸出,Params :: Validate :(我在嘗試安裝相關模塊時遇到了同樣的錯誤。)
Configuring Params-Validate-1.00
Running Build.PL
/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler (/usr/bin/../libexec/gcc/darwin/ppc/as or /usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed
Installed assemblers are:
/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
lipo: can't open input file: /var/tmp//cc3Aefez.out (No such file or directory)
Warning: ExtUtils::CBuilder not installed or no compiler detected
Proceeding with configuration, but compilation may fail during Build
為什么Build.PL正在尋找ppc編譯器? 如果這是問題我在哪里告訴它(或cpan或cpanm)這台機器不是ppc盒子?
我跑10.6.8。 perl的版本是為darwin-thread-multi-2level構建的v5.10.0
我絕對安裝了Developer工具。
我通過sudo運行cpan和cpanm。
我很感激任何人都可以提供幫助。
nm
,再次打破Perl( 之前 ),誰知道還有什么? 我安裝了10.7,安裝了Perl 5.12.3。 我做了CPAN安裝:
$ sudo cpan
password:
cpan> install DateTime
而且,整個事情都有效。 這是第三方文件所需要的,或者您是否想要使用它,因為您熟悉這個特定的包?
Perl 5.10有幾個內置的Time包。 其中一個適合你嗎? 否則,您可能需要安裝ExtUtils::CBuilder
並查看是否有幫助。
或者,安裝一個更現代的Perl版本,例如ActiveState ,安裝非常簡單,它的cpan
實用程序在Mac上工作得很好,它的版本5.14甚至比Lion附帶的版本更新。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.