折腾了几天,阿里云PG数据库上安装postgis。老提示缺失$libdir .查看文档。就是放在安装文件lib下面。复制了还是提示缺少。看公瑾大神的PostGIS入门篇 一 PostGIS安装 - 知乎
安装。感觉postgis结合了很多插件。然后安装的时候。默认放到了。/usr/下面。折腾很久。还是搞不定。后来参考这个。折腾出来了。
1、解压安装包
#新建安装文件夹
cd /usr
mkdir pgsql9.6
cd pgsql9.6
#安装上传文件命令
yum install lrzsz
#上传
rz -be
#解压文件
tar -zxvf postgresql-9.6.4.tar.gz
进入解压文件夹
cd postgresql-9.6.4
2、开始执行安装命令
执行postgresql安装配置命令
./configure --prefic=/usr/pgsql9.6/
./configure --prefic=/usr/pgsql9.6/ 执行该命令可能会遇到一下问题
readline library not found
If you have readline already installed, see config.log for details on the
failure. It is possible the compiler isn't looking in the proper directory.
Use --without-readline to disable readline support.
解决方案
yum instal
在阿里云上安装PostgreSQL 9.6与PostGIS的详细步骤

最低0.47元/天 解锁文章
840

被折叠的 条评论
为什么被折叠?



