Monday, July 04, 2016

Compile PostgreGIS (GEOS geometry library) on Solaris 11 (11.3)

Before you install PostGIS you will need to install some of the requirements.

GEOS geometry library, version 3.3 or greater, but GEOS 3.5+ is recommended to take full advantage of all the new functions and features.

# pkg install developer/gcc-45 build/gnu-make
# pkg install libtool automake autoconf gnu-gettext library/libxml2 library/json-c

# export PATH=/usr/gcc/4.5/bin:/usr/bin:/usr/sbin:/usr/sfw/bin:/usr/lib:/usr/gnu/bin:

# bzip2 -dc geos-3.5.0.tar.bz2| tar xf -
# ./configure CC='gcc -m64'  CPPFLAGS=-m64 CXXFLAGS=-m64 --prefix=/usr/local/postgres/geos
config.status: executing libtool commands
Swig: false
Python bindings: false
Ruby bindings: false
PHP bindings: false

# gmake
# gmake install

No comments: