2012年9月28日

解決:XCode 更新後使用 MacPorts 安裝新軟體發生錯誤


Mac OS X 在更新 XCode 開發工具後,使用「sudo port install XXX」安裝新軟體時,可能會發生錯誤,例如「sudo port install sshfs」 出現錯誤訊息:

--->  Building fuse4x-kext
Error: org.macports.build for port fuse4x-kext returned: command execution failed
Error: Failed to install fuse4x-kext
Please see the log file for port fuse4x-kext for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_fuse_fuse4x-kext/fuse4x-kext/main.log
Error: The following dependencies were not installed: fuse4x fuse4x-kext
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port sshfs failed

可能的問題原因是 XCode 更新後並未同意其相關條款,解決方法是執行「sudo xcodebuild -license」,在閱讀條款後按「q」結束、並輸入「accept」表示同意。

當然,如果連 XCode 都沒有裝的話,MacPorts 安裝軟體就會直接丟出錯誤訊息!

沒有留言:

張貼留言

lyhcode by lyhcode
歡迎轉載,請務必註明出處!