I just installed Linux Ubuntu 12.04 LTS (on a virtual machine). I then successfully installed the PostgreSQL 8.4 database management system. I am now trying to install PostGIS, which is an extension to PostgreSQL used for Geographical Information Systems capabilities. I followed the instructions for installing PostGIS on this webpage: http://postgis.net/docs/manual-2.0/postgis_installation.html
Section 2.4.1 ("Configuration") on this webpage tells me to type "./configure". I did this. The output (about 100 lines of mostly incomprehensible statements) included about one dozen instances of the following error message:
You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application.
At the end of the output, the following lines were outputted:
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 have no idea what caused these errors or how to fix them. I would appreciate any assistance or pointers.
NOTE: the above-linked webpage includes a section 2.2 ("Requirements") which lists eight required software packages:
- PostgreSQL 8.4
- GNU C compiler (gcc)
- GNU Make (gmake or make)
- Proj4 reprojection library, version 4.6.0 or greater
- GEOS geometry library, version 3.2.2 or greater
- LibXML2, version 2.5.x or higher
- JSON-C, version 0.9 or higher
- GDAL, version 1.6 or higher
I just installed PostgreSQL 8.4, and I am pretty sure that the GNU C compiler is also installed on my computer. But I do not know whether I have the other six software packages installed or not (or if they are installed, whether they are properly configured, etc.).