Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 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