0% found this document useful (0 votes)
36 views1 page

Postgres Installation

1. Install Postgres and export the library path. 2. Configure and build PostGIS, GEOS, PROJ, and GDAL. 3. Configure and build pgRouting, GUAL, and CGAL. Add pgRouting to the PostgreSQL server.

Uploaded by

Ashima Gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views1 page

Postgres Installation

1. Install Postgres and export the library path. 2. Configure and build PostGIS, GEOS, PROJ, and GDAL. 3. Configure and build pgRouting, GUAL, and CGAL. Add pgRouting to the PostgreSQL server.

Uploaded by

Ashima Gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

run Postgres
2. export LD_LIBRARY_PATH=/opt/PostgreSQL/9.2/lib:$LD_LIBRARY_PATH
3. postgis : ./configure --with-pgconfig=/opt/PostgreSQL/9.2/bin/pg_config
---- geos
-------- ./configure
-------- make
-------- make install
----- proj
------- ./configure --without-jni
------- make
------- make install
----- gdal
------- ./configure
------- make
------- make install
----- make
----- make install
4. pgrouting
----- cmake
------- ./configure
------- make
------- make install
----- gual
------- ./configure
------- make
------- make install
----- CGAL
------./install_cgal -i
----- export CGAL_MAKEFILE=/root/Postgres/CGAL-3.2.1/make/makefile_x86-
64_Linux-2.6_g++-4.1.2
----- Uncomment CXXFlags
-----
------ cmake -DWITH_TSP=ON -DWITH_DD=ON .
------ mv /root/Postgres/pgrouting/cmake/CMakeList.txt
/root/Postgres/pgrouting/cmake/CMakeLists.txt
#include "catalog/pg_type.h"
------ echo '/usr/local/lib' >> /etc/ld.so.conf.d/local-lib.conf
------ psql -d incp -f
/opt/PostgreSQL/9.2/share/postgresql/contrib/postgis-2.0/postgis.sql -U incp

You might also like