安装编译器(已安装的可忽略)
sudo apt-get -y install gcc
sudo apt install make
sudo apt install g++
安装数据库postgresql-12
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get -y install postgresql-12
psql –V
psql –V查看是否安装成功
安装geos
tar jxf geos-3.5.2.tar.bz2
cd geos-3.5.2
./configure -prefix=/usr/local/geos
make
make install
安装proj-4
tar jxf proj-4.9.2.tar.gz
cd proj-4.9.2/
./configure -prefix=/usr/local/proj4
make
sudo make install