โอเค ฉันรู้วิธีติดตั้งโมดูล Perl ด้วย cpan และทำมาหลายปีแล้ว แต่เมื่อฉันพยายามติดตั้งโมดูล DateTime บน Mac เครื่องนี้ มันล้มเหลว โดยอ้างว่าไม่พบคอมไพเลอร์
นี่คือผลลัพธ์บางส่วนจากการพยายามติดตั้งหนึ่งในข้อกำหนดเบื้องต้น 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 คือ v5.10.0 ที่สร้างขึ้นสำหรับ darwin-thread-multi-2level
ฉันติดตั้งเครื่องมือสำหรับนักพัฒนาไว้แล้วอย่างแน่นอน
ฉันใช้ cpan และ cpanm ผ่าน sudo
ฉันจะขอบคุณสำหรับความช่วยเหลือใด ๆ ที่ทุกคนสามารถนำเสนอได้