PostGIS安装问题记录

参照文章进行PostGIS的安装

  1. 配置postgis时出现错误:

./configure --with-pgconfig=/home/postgresql-11.3-1/bin/pg_config --with-geosconfig=/usr/local/geos/bin/geos-config --with-projdir=/usr/local/proj4 --with-gdalconfig=/usr/local/gdal/bin --without-raster
出现错误信息:
configure: error: could not find geos-config within the currentpath. You may need to try re-running configure with a --with-geosconfig parameter. 

分析:
在配置的时候是配置了–with-geosconfig参数,同时 指向的路径也是存在的,所以感觉也很奇怪。
后经排查,是有一个依赖未完全安装上导致。重新yum 安装缺失的包。

yum install libxml2-devel sqlite sqlite-devel json-c-devel
  1. 执行postGIS插件初始化的时候出现错误
ERROR:  could not load library "/usr/local/gisspace/pgsql/lib/postgis-3.so": libgeos_c.so.1: cannot open shared object file: No such file or directory

解决方案:
环境变量配置问题解决方案如下:

切换到root用户:su root
打开: vi /etc/ld.so.conf
添加:/usr/local/lib
添加:/usr/local/pgsql/lib
退出执行 :ldconfig
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值