postgis 安装错误记录

  1. postgres单机 + postgis 安装详细版
    https://zhuanlan.zhihu.com/p/143690286
  2. ERROR: could not load library "/opt/postgresql-9.3.2/lib/postgis-2.3.so": /opt/postgresql-9.3.2/lib/postgis-2.3.so: undefined symbol: GEOSClipByRect
    查看集群机器 geos 版本是否一样,先统一版本,再是下面的操作
    geos-config --version
    
    编辑此文件,添加 geos 的 lib 安装目录
    vim /etc/ld.so.conf
    
    include ld.so.conf.d/*.conf
    /usr/local/lib      
    
    执行配置生效
    ldconfig -v 

    参考 https://www.jianshu.com/p/a42f3d308993

  3. could not load library "/usr/pgsql-11/lib/pg_prometheus.so": /usr/pgsql-11/lib/pg_prometheus.so: undefined symbol: Float8GetDatum

    网上的解决办法,但是不会重新编译 so 文件,所以我是直接重新安装的 postgis-3.0.0

    安装参考 https://zhuanlan.zhihu.com/p/143690286

 

posted on 2022-10-13 16:50  闹不机米  阅读(510)  评论(0编辑  收藏  举报

导航