wget http://download.osgeo.org/geos/geos-3.7.2.tar.bz2 tar -jxvf geos-3.7.2.tar.bz2 cd geos-3.7.2 ./configure prefix=/home/postgres/pg12/geos make -j10 make install
proj
1 2 3 4 5 6
wget http://download.osgeo.org/proj/proj-4.9.2.tar.gz tar -zxvf proj-4.9.2.tar.gz cd proj-4.9.2/ ./configure prefix=/home/postgres/pg12/proj make -j10 make install
gdal
编译时间很长
1 2 3 4 5 6
wget http://download.osgeo.org/gdal/2.2.3/gdal-2.2.3.tar.gz tar -zxvf gdal-2.2.3.tar.gz cd gdal-2.2.3 ./configure prefix=/home/postgres/pg12/gdal make -j10 make install
json-c
1 2 3 4 5 6
wget https://s3.amazonaws.com/json-c_releases/releases/json-c-0.15.tar.gz mkdir build cd build ../cmake-configure --prefix=/home/postgres/pg12/jsonc make -j10 make install
protobuf-c
不是必须, 需要使用ST_AsMVT则需要。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.12.4/protobuf-all-3.12.4.tar.gz tar -zxvf protobuf-all-3.12.4.tar.gz cd protobuf-all-3.12.4 ./configure sudo make -j10 sudo make install wget https://github.com/protobuf-c/protobuf-c/archive/v1.3.3.tar.gz tar -zxvf v1.3.3.tar.gz sudo vim /etc/ld.so.conf /usr/local/protobuf-3.11.4/lib /usr/local/protobuf-c-1.3.2/lib export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH cd protobuf-c-1.3.3 ./configure --prefix=/home/postgres/pg12/protobuf make -j10 make install