title: Error while installing PostgreSQL ODBC - libpq library not found
body: <p>I am trying to install the Postgres ODBC driver on my Mac.<br>
  I installed postgres 8.4 with brew.  </p>
  
  <p>I downloaded the ODBC driver from here.<br>
  <a href="http://ftp.postgresql.org/pub/odbc/versions/src/" rel="nofollow">http://ftp.postgresql.org/pub/odbc/versions/src/</a></p>
  
  <p>Then I run    </p>
  
  <pre><code>./configure
  </code></pre>
  
  <p>but I get    </p>
  
  <pre><code>configure: error: libpq library not found
  </code></pre>
  
  <p>however looks like the library is installed, in fact    </p>
  
  <pre><code>:~/Downloads/psqlodbc-08.04.0200$ find / -name "libpq.a" 2&gt;/dev/null
  /Library/PostgreSQL/8.4/lib/libpq.a
  </code></pre>
  
  <p>this is the output of my pg_conf</p>
  
  <pre><code>:~/Downloads/psqlodbc-08.04.0200$ pg_config
  BINDIR = /Library/PostgreSQL/8.4/bin
  DOCDIR = /Library/PostgreSQL/8.4/doc/postgresql
  HTMLDIR = /Library/PostgreSQL/8.4/doc/postgresql
  INCLUDEDIR = /Library/PostgreSQL/8.4/include
  PKGINCLUDEDIR = /Library/PostgreSQL/8.4/include/postgresql
  INCLUDEDIR-SERVER = /Library/PostgreSQL/8.4/include/postgresql/server
  LIBDIR = /Library/PostgreSQL/8.4/lib
  PKGLIBDIR = /Library/PostgreSQL/8.4/lib/postgresql
  LOCALEDIR = /Library/PostgreSQL/8.4/share/locale
  MANDIR = /Library/PostgreSQL/8.4/share/man
  SHAREDIR = /Library/PostgreSQL/8.4/share/postgresql
  SYSCONFDIR = /Library/PostgreSQL/8.4/etc/postgresql
  PGXS = /Library/PostgreSQL/8.4/lib/postgresql/pgxs/src/makefiles/pgxs.mk
  CONFIGURE = '--prefix=/Users/buildfarm/pginstaller/server/staging/osx' '--with-openssl' '--with-perl' '--with-python' '--with-tcl' '--with-bonjour' '--with-pam' '--with-krb5' '--enable-thread-safety' '--with-libxml' '--with-ossp-uuid' '--with-includes=/usr/local/include/libxml2:/usr/local/include' '--docdir=/Users/buildfarm/pginstaller/server/staging/osx/doc/postgresql' '--with-libxslt' 'CFLAGS=-isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -headerpad_max_install_names -arch ppc -arch i386' 'LDFLAGS=-L/usr/local/lib'
  CC = gcc -no-cpp-precomp
  CPPFLAGS = -I/usr/include/libxml2 -I/usr/local/include/libxml2 -I/usr/local/include
  CFLAGS = -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -headerpad_max_install_names -arch ppc -arch i386 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv
  CFLAGS_SL =
  LDFLAGS = -L/usr/local/lib -L/usr/lib
  LDFLAGS_SL =
  LIBS = -lpgport -lxslt -lxml2 -lpam -lssl -lcrypto -lkrb5 -lz -lreadline -lm
  VERSION = PostgreSQL 8.4.18
  </code></pre>
  
  <p>any idea? thank you for your help</p>