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)

Advertisements

~ by voidptr on October 17, 2011.

2 Responses to “Compiling py26-pyqt4 in Mac OS X 10.6 (Snow Leopard) with MacPorts”

  1. Are you visualizing Avida phylogenies or something else?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: