首先看这里:https://www.liujason.com/article/152.html
然后,ssh里安装gdal-devel, proj-devel, proj-nad, proj-epsg
libgdal.so问题:
cp /usr/local/lib/libgdal.so.20* /usr/lib64/
libkmldom.so问题:
wget https://cbs.centos.org/repos/cloud7-openstack-common-candidate/x86_64/os/Packages/libkml-1.3.0-3.el7.x86_64.rpm
yum install libkml-1.3.0-3.el7.x86_64.rpm -y
wget https://cbs.centos.org/repos/cloud7-openstack-common-candidate/x86_64/os/Packages/libkml-devel-1.3.0-3.el7.x86_64.rpm
yum install libkml-devel-1.3.0-3.el7.x86_64.rpm
另外geos-config找不到的需要安装还有geos-devel
yum install -y geos-devel