For the record, I've found the following "kitchen sink options" will build and install on OS X 10.5 with macports. sudo -i port install gmake port install gawk port install flex port install bison +yacc port install openldap port install openssl port install libxml port install libxml2 port install libxmldiff port install libxmlxx port install libxmlxx2 port install python25 port install perl5.8 +darwin_9 +threads +shared port install tcl +threads ## Some of these ports may replace a currently installed port. ## Use 'port deactivate XXX' on the currently installed port XXX. ## Then run the install again to enable the new port. ## Use 'port variants XXX' to identify install candidates. mkdir -p /usr/src cd /usr/src curl -O ftp://ftp5.us.postgresql.org/pub/PostgreSQL/source/v8.3.3/postgresql-8.3.3.tar.gz tar zxvf postgresql*.tar.gz cd postgresql-8.3.3 ./configure \ --with-includes=/opt/local/include \ --with-libraries=/opt/local/lib \ --with-perl --with-python --with-tcl \ --with-krb5 --with-gssapi --with-pam \ --with-ldap --with-openssl --enable-thread-safety \ --with-bonjour --with-libxml --with-libxslt \ --with-system-tzdata=/usr/share/zoneinfo ## Check config.log to confirm where it found libraries gmake # Wait for "All of PostgreSQL successfully made. Ready to install." gmake install # Wait for "PostgreSQL installation complete."