Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed MacPorts from the DMG package at

After installing it I tried to use it and get this:

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)

I tried removing /opt/local/share/macports and /opt/local/bin/port and reinstalling, but it did not help.


I tried a complete removal by doing

%% 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 \

And then installing MacPorts-1.9.2-10.6-SnowLeopard.dmg but still I get same error.

share|improve this question

migrated from Apr 27 '11 at 7:37

This question came from our site for system and network administrators.

If you don't specifically need MacPorts you can try Homebrew which is a more up-to-date replacement with easier installation and usage. Just run ruby -e "$(curl -fsSL" – slhck Apr 27 '11 at 7:43
Thanks slhck, I went with MacPorts because it was one of the steps in… – user16145 Apr 27 '11 at 7:44
@user16145 Ok! Btw you can put your working solution as an answer to this question and accept it in two days. – slhck Apr 27 '11 at 7:47
We'd appreciate if you added an answer to the question as @slhck suggests, otherwise; it'll get automatically bumped to the front page, as the system thinks it's unanswered. – Daniel Beck Apr 27 '11 at 8:14
up vote 1 down vote accepted

Install it from source.

tar xjvf MacPorts-1.9.2.tar.bz2
cd MacPorts-1.9.2
./configure && make && sudo make install
sudo port -v selfupdate
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.