Update:
Don't waste your time with MacPorts. I would recommend using Homebrew instead. It's easy to use and doesn't clutter up your system with a bunch of junk directories.
Update: Don't install Darwin Ports. Darwin Ports is a fake. Also, I did not have a great experience using MacPorts, so I don't recommend using it.
Original Question:
So I decided to download and install Darwin Ports to make my life a little easier. I ran the installer and it seemed to install just fine. But when I run sudo port -d selfupdate like the documentation says to do, I get some sort of message:
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: no matching architecture in universal wrapper 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)
I don't know what that means or what I should do. Any suggestions? I also don't know the difference between Darwin Ports and MacPorts. Maybe I am trying to install the wrong thing?
Update: I decided to install MacPorts to see what would happen. I was able to download the version of the MacPorts package installer for Snow Leopard, install MacPorts and run sudo port -v selfupdate (note the -v difference) and get it to update correctly. Now I am trying to install phpMyAdmin by doing sudo port install phpmyadmin but I get this error message:
---> Computing dependencies for phpmyadmin
Error: Unable to execute port: can't read "build.cmd": Failed to locate 'make' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it?
Did I miss a step in installing MacPorts?
Update: Turns out I needed to re-install the newest version of Xcode.