依赖环境安装
sqlite3安装
https://www.sqlite.org/2024/sqlite-autoconf-3450200.tar.gz
tar xvf sqlite-autoconf-3450200.tar
cd sqlite-autoconf-3450200
mkdir -p /home/postgres/app/postgis/sqlite3
./configure --prefix=/home/postgres/app/postgis/sqlite3
make && make install
##修改环境变量
vi ~/.bashrc
export PATH=/home/postgres/app/postgis/sqlite3/bin:$PATH
export PKG_CONFIG_PATH=/home/postgres/app/postgis/sqlite3/lib/pkgconfig:$PKG_CONFIG_PATH
source ~/.bashrc
#查看版本,检查是否安装成功
sqlite3 --version
geos安装
geos-3.9.5
http://download.osgeo.org/geos/geos-3.9.5.tar.bz2
tar xvf geos-3.9.5.tar.bz2
cd geos-3.9.5
mkdir build
mkdir -p ~/app/postgis/geos
cmake -B ./build/ -DCMAKE_INSTALL_PREFIX=~/app/postgis/geos
cd build
make && make install
geos-3.8.0
./configure --prefix=/home/postgres/app/postgis/geos
make && make install

本文详细介绍了如何在Linux环境下编译和安装PostGIS,包括依赖环境如sqlite3、geos、protobuf、PROJ、boost、CGAL、GMP、MPFR等的安装步骤,以及PostGIS的编译和插件安装过程。
最低0.47元/天 解锁文章
1299

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



