ใน OS X การตัดตั้งโปรแกรมที่เป็นที่นิยมกันนั้นมีหลายทาง แบบที่ได้รับความนิยม มากอีกทางหนึ่งคือการติดตั้งผ่านทาง Repository (portal รวม software ทาง internet) ผ่านทาง command โดยการติดตั้งแบบนี้คล้ายกับการใช้คำสั่ง apt-get ใน Ubuntu หรือ Debian ต่างกันที่รายการ repository ที่ต่างกัน และ command ที่ไม่เหมือนกันเท่านั้นเอง
Software ที่ทำหน้าที่ดังกล่าวนี้รู้จักดีในนาม Darwinport
คนใช้ Mac ท่านไหนไม่ได้ใช้ระบบนี้ แทบจะบอกได้เลยว่า ไม่ใด้ใช้ความสามารถ OS X ได้อย่างเต็มที่
แต่สำหรับคนที่ใช้งานอยู่แล้วจะเจอปัญหา error แบบนี้ หลังจาก upgrade มาเป็น Snow Leopard
Code:
aca801a3:~ myname$ port
dlopen(/opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib, 10): no suitable image found. Did find:
/opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib: no matching architecture in universal wrapper
while executing
"load /opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib"
("package ifneeded Pextlib 1.0" script)
invoked from within
"package require Pextlib 1.0"
(file "/opt/local/bin/port" line 40)
วิธีแก้สามารถทำได้ง่ายๆดังนี้
**Hidden Content: To see this hidden content your post count must be 1 or greater.**