Compiling py26-pyqt4 in Mac OS X 10.6 (Snow Leopard) with MacPorts
(…when it just doesn’t fucking work)
So, I was trying to install ETE to do some phylogenetic tree visualizations. The recommended method, MacPorts (
sudo port install py26-ete2), kept failing while attempting to install the py26-pyqt4 pre-req package. Noted in the log was the following unhelpful error message*:
configure couldn't open "/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tclIndex": no such file or directory
*HINT: This isn’t the actual problem.
The problem is that sip (a prereq to py26-pyqt4) is not being properly referenced.
To fix it, run the following:
sudo ln -s /opt/local/bin/sip-2.6 /opt/local/bin/sip
which will create a soft-link between the installed sip binary (sip-2.6) and what is being called by py26-pyqt4 configure script (just sip).
Then, when you run the macports install command again, it will succeed in installing py26-pyqt4, and the rest of the prereqs.
(keywords: MacPorts ETE ete2 Mac OS X Leopard Python py26-pyqt4 QT4 sip)