วันนี้ผมจะเขียนโปรแกรมโดยใช้ perl เรียกใช้ cURL แต่ดันไม่มี
เลยต้อง install macports ซะหน่อย
ก็ไปดาวน์โหลดfile install แบบ wizard มา
แต่พอลงแล้ว
sudo port --version
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: mach-o, but wrong architecture
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)
เรียกใช้งานไม่ได้
เลยต้องลงใหม่
เปิดเข้า terminal เลยครับ จากนั้นพิมพ์ sudo su root ใส่ password ให้เรียบร้อย
หาที่ไว้สำหรับ download ไฟล์จาก svn ส่วนผมเลือก /Users/xxx/
จากนั้นพิมพ์
svn co http://svn.macports.org/repository/macports/trunk/base/ macports-svn
รอซักครู่
เมื่อดาวน์โหลดเสร็จ ก็เข้าไป folder macports-svn
ด้วยคำสั่ง cd macports-svn
แล้วตามด้วย ./configure && make && make install;
รอซักพัก
เมื่อเสร็จแล้ว ก็ sync ข้อมูลจาก server ด้วยคำสั่ง sudo port -d sync
เมื่อเสร็จแล้ว จะขึ้นประมาณนี้
sent 312205 bytes received 11092961 bytes 57747.68 bytes/sec
total size is 26320418 speedup is 2.31
DEBUG: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/ports/PortIndex_darwin_10_i386/PortIndex /opt/local/var/macports/sources/rsync.macports.org/release/ports
receiving file list ... done
PortIndex
sent 58 bytes received 938694 bytes 34136.44 bytes/sec
total size is 4036551 speedup is 4.30
Creating port index in /opt/local/var/macports/sources/rsync.macports.org/release/ports
Total number of ports parsed: 0
Ports successfully parsed: 0
Ports failed: 0
Up-to-date ports skipped: 7257
เป็นอันว่าเสร็จส่วนจะ install อะไรเพิ่มก็เลือกจาก
http://perl.darwinports.com/ นะครับ
ส่วนผมก็ จัด cURL ด้วยคำสั่ง sudo port install curl
รอซักพักก็เป็นอันว่าเสร็จ
Search in Devinthailand
Showing posts with label Pextlib. Show all posts
Showing posts with label Pextlib. Show all posts
Friday, 30 July 2010
Macports installไม่ได้ แก้ยังไงดี
Labels: computer science, cs, cs08, curl, darwinports, error, kmutt, macports, perl, Pextlib, เพิร์ล
Posted by Thailand Computer Knowledge at 20:02 0 comments
Subscribe to:
Posts (Atom)
