Installing a fully functional PostGIS 2.0 on Ubuntu Linux GEOS/GDAL issues

别等时光非礼了梦想. 提交于 2019-12-05 11:29:59
  • First: it is common to perform ./configure and make as a plain user, and only doing the finale make install as user root. (this will avoid the build directory to be polluted by files with strange ownership)
  • second: the postgis-2.0 that you intend to build is a version still in development. You should always expect (minor) build-errors.
  • third: (the good news) I managed to get it compiled, but I first had to configure&build&install
    • geos-3.3.1
    • proj-4.7.0
    • json-c-0.9
    • gdal-1.8.1

geos-2.0SVN was subsequently built with:

PROG=postgis
#VERSION=1.5.4SVN
VERSION=2.0.0SVN

./configure --prefix=/opt/${PROG} \
    --with-projdir=/opt/proj \
    --with-geosconfig=/opt/geos/bin/geos-config     \
    --with-jsondir=/opt/json-c      \
    --with-gdalconfig=/opt/gdal/bin/gdal-config     \
    --with-raster --with-topology

make

make check

sudo make install

There was one minor issue with preprocessing *.sql.in via gcc (yuck), which can (temporarily) be worked-around by commenting out one line (@linenumber 91)

## SQL objects deps here # comment out next line...
#$(SQL_OBJS): ../../postgis/sqldefines.h

in the raster/rt_pg/Makefile.in file (prior to ./configure, of course)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!