[root@SinCity psycopg-1.1.2]# ./configure --with-postgres-includes=/usr/include/postgresql/ --with-postgres-libraries=/usr/lib/postgresql/ loading cache ./config.cache checking for python... /usr/bin/python checking python version... 2.4 checking python installation prefix... /usr checking python installation exec_prefix... /usr checking definitions in Python library makefile... done checking location of python library... $(prefix)/lib/python2.4/site-packages checking location of python shared modules... $(exec_prefix)/lib/python2.4/site-packages checking for gcc... gcc -pthread checking whether the C compiler (gcc -pthread ) works... yes checking whether the C compiler (gcc -pthread ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc -pthread accepts -g... yes checking how to run the C preprocessor... gcc -pthread -E checking whether make sets ${MAKE}... yes checking for inline... inline checking PostgreSQL version... configure: error: missing PostgreSQL headers