無法使用 macports 安裝 git-core

無法使用 macports 安裝 git-core

雪豹 10.6.4 mac 埠 1.9.1

我剛剛安裝了 macports,我想安裝 git-core。

但是,我收到以下錯誤:

--->  Computing dependencies for git-core
--->  Dependencies to be installed: python26 db46 gdbm readline sqlite3 rsync popt
--->  Building db46
Error: Target org.macports.build returned: shell command failed
Log for db46 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_db46/main.log
Error: The following dependencies failed to build: python26 db46 gdbm readline sqlite3 rsync popt
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

我嘗試過執行 aport selfupdate和 a port clean all,然後嘗試再次安裝。但仍然遇到同樣的問題。

這是我第一次使用 mac ports。

非常感謝您的任何建議。

======編輯====

:error:build Target org.macports.build returned: shell command failed
:debug:build Backtrace: shell command failed
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for db46): org.macports.activate org.macports.build org.macports.destroot org.macports.install

答案1

如果

:info:build 警告:以下項目未執行(對於 db46): org.macports.activate org.macports.build org.macports.destroot org.macports.install

是日誌中的第一個錯誤,那麼我認為您需要使用 sudo 運行命令

例如

sudo port install readline

嘗試 readline 因為我認為這是最簡單的端口

我認為超級用戶是解決此問題的正確位置,而不是伺服器故障,因為 macports 可以應用於一台電腦並且僅用於安裝軟體。 (我想蘋果堆疊交換可能是相關網站。

相關內容