在 Snow Leopard 上安装 MacPorts

在 Snow Leopard 上安装 MacPorts

我从 DMG 包安装了 MacPortshttp://www.macports.org/install.php

安装后我尝试使用它并得到以下结果:

dlopen(/opt/local/share/macports/Tcl/macports1.0/MacPorts.dylib, 10): no suitable image found.  Did find:
    /opt/local/share/macports/Tcl/macports1.0/MacPorts.dylib: no matching architecture in universal wrapper
    while executing
"load /opt/local/share/macports/Tcl/macports1.0/MacPorts.dylib"
    ("package ifneeded macports 1.0" script)
    invoked from within
"package require macports"
    (file "/opt/local/bin/port" line 39)

我尝试删除 /opt/local/share/macports 和 /opt/local/bin/port 并重新安装,但没有帮助。

更新:

我尝试通过以下方式彻底删除

%% sudo rm -rf \
    /opt/local \
    /Applications/DarwinPorts \
    /Applications/MacPorts \
    /Library/LaunchDaemons/org.macports.* \
    /Library/Receipts/DarwinPorts*.pkg \
    /Library/Receipts/MacPorts*.pkg \
    /Library/StartupItems/DarwinPortsStartup \
    /Library/Tcl/darwinports1.0 \
    /Library/Tcl/macports1.0 \
    ~/.macports

然后安装 MacPorts-1.9.2-10.6-SnowLeopard.dmg 但仍然出现同样的错误。

答案1

从源代码安装它。

tar xjvf MacPorts-1.9.2.tar.bz2
cd MacPorts-1.9.2
./configure && make && sudo make install
sudo port -v selfupdate

相关内容