UKOUG Technology Conference

Monday, July 04, 2016

Compile PostgreGIS (Proj4 reprojection library) on Solaris 11 (11.3)

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

Proj4 reprojection library is used to provide coordinate reprojection support within PostGIS.

# 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:

# unzip -q proj.4-master.zip 
# cd proj.4-master
# autoreconf -vif
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:21: installing `./config.guess'
configure.ac:21: installing `./config.sub'
configure.ac:9: installing `./install-sh'
configure.ac:9: installing `./missing'
src/Makefile.am: installing `./depcomp'
autoreconf: Leaving directory `.'

./configure CC='gcc -m64'  CPPFLAGS=-m64 CXXFLAGS=-m64 --prefix=/usr/local/postgres/proj4
# gmake
# gmake install

No comments: