I will be installing PostGIS for my project using PostgreSQl (OSM) in Ubuntu 9.04. I had all the requirements prior to the installation (PostgreSQL, Proj4, GEOS). When I unzip the PostGIS tar, then './configure' it, it says that the pg_config.h file is missing. I found out that I need to 'apt-get install libpq-dev' for me to able to have this file and past it as parameter to ./configure –with-pgconfig=PATH. When I executed this, this is what happens:
... checking for libiconv_open in -liconv... no checking for iconv_open in -lc... yes Using user-specified pg_config file: /usr/include/postgresql/pg_config.h ./configure: line 16394: /usr/include/postgresql/pg_config.h: Permission denied ./configure: line 16404: /usr/include/postgresql/pg_config.h: Permission denied ./configure: line 16405: /usr/include/postgresql/pg_config.h: Permission denied ./configure: line 16406: /usr/include/postgresql/pg_config.h: Permission denied checking PostgreSQL version... ./configure: line 16411: test: : integer expression expected ./configure: line 16416: test: : integer expression expected ./configure: line 16426: test: : integer expression expected ./configure: line 16433: /usr/include/postgresql/pg_config.h: Permission denied ./configure: line 16434: /usr/include/postgresql/pg_config.h: Permission denied ./configure: line 16439: /usr/include/postgresql/pg_config.h: Permission denied ./configure: line 16440: /usr/include/postgresql/pg_config.h: Permission denied ./configure: line 16445: /usr/include/postgresql/pg_config.h: Permission denied ./configure: line 16449: /usr/include/postgresql/pg_config.h: Permission denied checking libpq-fe.h usability... no checking libpq-fe.h presence... no checking for libpq-fe.h... no configure: error: could not find libpq-fe.h
I checked in the /usr/include/postgresql/ directory and I found the pg_config.h and libpq-fe.h files there.
What can I be missing here?
Best Answer
Try installing the package available on Synaptic: