鲲鹏920 centos7 postgresql12 postgis2.5.4编译
生活随笔
收集整理的這篇文章主要介紹了
鲲鹏920 centos7 postgresql12 postgis2.5.4编译
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
postgresql12.2編譯
依賴環境
這臺機器編譯過nginx,有一些基礎環境
yum install -y gcc-c++ yum install -y pcre pcre-devel yum install -y zlib zlib-devel yum install -y openssl openssl-devel補充安裝了readline就行了
yum install -y readline-devel下載編譯
wget https://ftp.postgresql.org/pub/source/v12.2/postgresql-12.2.tar.gz tar xzvf postgresql-12.2.tar.gz cd postgresql-12.2/./configure -prefix=/usr/local/pgsql make && make install直至
PostgreSQL installation complete.
編譯安裝成功
PostGIS編譯
依賴環境
這個是為greenplum準備的完整編譯環境(postgis)
yum install -y epel-release yum install -y \apr-devel \bison \bzip2-devel \cmake3 \flex \gcc \gcc-c++ \krb5-devel \libcurl-devel \libevent-devel \libkadm5 \libyaml-devel \libxml2-devel \libzstd-devel \openssl-devel \perl-ExtUtils-Embed \python-devel \python-pip \readline-devel \xerces-c-devel \zlib-develyum install -y gdal-devel編譯libgeos
wget http://download.osgeo.org/geos/geos-3.8.0.tar.bz2 yum install -y bzip2 tar jxf geos-3.8.0.tar.bz2 cd geos-3.8.0/ #編譯 ./configure -prefix=/usr/local/geos && make && make install編譯proj4
wget http://download.osgeo.org/proj/proj-4.9.3.tar.gz #http://download.osgeo.org/proj/proj-6.2.1.tar.gz 注意項目需要的是4.x,其他版本不可用 tar zxf proj-4.9.3.tar.gz cd proj-4.9.3yum install -y libsqlite3x-devel ./configure -prefix=/usr/local/proj4 && make && make installpostgis2.5.4編譯
wget https://download.osgeo.org/postgis/source/postgis-2.5.4.tar.gz tar xzvf postgis-2.5.4.tar.gz cd postgis-2.5.4/./configure --with-pgconfig=/usr/local/pgsql/bin/pg_config --with-geosconfig=/usr/local/geos/bin/geos-config --with-projdir=/usr/local/proj4 make && make install成功
總結
以上是生活随笔為你收集整理的鲲鹏920 centos7 postgresql12 postgis2.5.4编译的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 360健康助手文件存储位置 获取图片
- 下一篇: smartadmin_smartadmi