本文主要是介绍postgis源码编译安装-实操成功,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
依赖环境安装
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
protobuf安装
这篇关于postgis源码编译安装-实操成功的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!