Using MacPorts? You should really think about moving to Homebrew. Why?
- Homebrew installs packages into their own isolated prefixes and then symlinked into /usr/local.
- It uses the libs that are already installed, no need to compile another perl, openssl or x11 and other stuff that can be found on your mac. Don’t waste time and disc space.
- Way better command line user interface
- Homebrew and it’s installation scripts are hosted at Github
- The installation scripts (aka recepies) and Homebrew itself are written in ruby.
Moving from MacPorts to Homebrew sounds a little bit scary. MacPorts has tons of compiled stuff on your system. But you can do this. Trust me :) .
First, uninstall MacPorts:
Second step: remove everything that is left from MacPorts (check for MySQL and other stuff in /opt/local first) :
1 2 3 4 5 6 7 8 9 10
Alternatively you can move those directories to another place and delete them if everything is okay (if you don’t trust your Timemachine ;) ).
After that you should remove the
/opt/local/bin from your
Now install Homebrew with the command you find here.
Yeah! You can now start install packages like wget with
There is only one little catch: if you have installed ruby gems that depend on libs from your MacPorts directory, you have to recompile them. I had to recompile my rmagick gem because it used the now deleted ImageMagick from MacPorts.