https://yq.aliyun.com/articles/228258
http://download.osgeo.org/postgis/source/
http://blog.51cto.com/heyiyi/1873448

http://www.postgis.net/docs/

1.
tar -jxvf geos-3.6.0.tar.bz2
cd geos-3.6.0/
./configure --prefix=/opt/geos360
make
make install

2.
tar -zxvf proj-4.9.3.tar.gz
cd proj-4.9.3/
./configure --prefix=/opt/proj493
make
make install

3.
cd ~
vi .bash_profile
export LD_LIBRARY_PATH=/opt/pgsql101/lib
export PATH=/opt/pgsql101/bin:$PATH
export MANPATH=/opt/pgsql101/share/man:$MANPATH
source .bash_profile
tar -zxvf gdal-2.1.2.tar.gz
cd gdal-2.1.2/
./configure --prefix=/opt/gdal212
make
make install

4.
find / -name "xml2-config"
find / -name "geos-config"
find / -name "proj_api.h"

yum install -y libxml2-devel

cd ~
vi .bash_profile
export LD_LIBRARY_PATH=/opt/pgsql101/lib
export PATH=/opt/pgsql101/bin:$PATH
export MANPATH=/opt/pgsql101/share/man:$MANPATH
source .bash_profile

tar -zxvf postgis-2.4.3.tar.gz
cd postgis-2.4.3/
./configure --prefix=/opt/postgis243 --with-geosconfig=/opt/geos360/bin/geos-config --with-projdir=/opt/proj493/ --with-gdalconfig=/opt/geos360/bin/geos-config --with-gdalconfig=/opt/gdal212/bin/gdal-config
make
make install

su - root
cp /opt/geos360/lib/libgeos_c.so.1 /opt/pgsql101/lib
cp /opt/proj493/lib/libproj.so.12 /opt/pgsql101/lib
cp /opt/gdal212/lib/libgdal.so.20 /opt/pgsql101/lib

psql
CREATE EXTENSION fuzzystrmatch;
create extension postgis;
CREATE EXTENSION postgis_topology;
CREATE EXTENSION postgis_tiger_geocoder;
CREATE EXTENSION address_standardizer;

\dx

ldd
用于打印程序或者库文件所依赖的共享库列表。

PostGIS安装 pgis3.4.2 postgresql 10.1的更多相关文章

  1. PostgreSQL(PostGIS)安装和入门的若干问题

    1. 装完PostgreSQL后记得打开pgAdmin4启动一下服务器和启动一下数据库,否则PostGIS装不上. 2. pgAdmin4是网页,而3是客户端,当然都可以在File - Prefere ...

  2. 与你相遇好幸运,Postgresql和postgis安装

    笔者开发环境: windows 7 x86_64 一开始安装的是官网最新版 PostgreSQL 9.6 ,安装成功 之后安装PostGIS Bundle 2.2 for PostgreSQL x64 ...

  3. CentOS 7 安装、配置、使用 PostgreSQL 10 安装及基础配置

    官网安装方法:https://www.postgresql.org/download/linux/redhat/ 卸载的话使用 yum remove 相应的安装 Install the reposit ...

  4. window postgresql 10.4安装

    window installer下载地址:https://www.enterprisedb.com/downloads/postgres-postgresql-downloads 其他版本官网下载地址 ...

  5. 在CentOS 7 / RHEL 7安装PostgreSQL 10

    CentOS 到了7.x版本, PostgreSQL也来到了10.x版本. 前些天MySQL都直接跨到了8.0版本. 本文是一篇在CentOS 7.4上安装安装PostgreSQL 10.3 的教程. ...

  6. Ubuntu 18.04 下 PostgreSQL 10 的安装与基础配置

    下载安装 在命令行执行如下语句: apt-get install postgresql-10 该指令会帮助你下载如下PostgreSQL组件: name |explain | ------------ ...

  7. Ubuntu下编译安装postgreSQL 10.5

    Ubuntu下编译安装postgreSQL 10.5 ubuntu 16.04 LTS系统postgreSQL 10.5 安装包准备 1.从PostgreSQL官网下载PostgreSQL的安装包 安 ...

  8. PostGIS安装

    PostGIS安装 1.软件下载 postgresql-9.6.1-1-windows-x64-binaries.zip https://www.postgresql.org/download/win ...

  9. PostgreSQL 10.7 linux 主从配置

    PostgreSQL 10.7 主从安装 硬件环境 云服务商:华为云 Linux: CentOS7.1 工具:Xshell Xftp IP:114.115.251.168 Port: 5432 543 ...

随机推荐

  1. Selenium-几种等待方式

    强制等待 一直使用的time.sleep(5),可以放在任意地方,不好的地方,不太准确确定时间 隐形等待 driver.implicitly_wait(5) 设置了一个最长等待时间,如果在规定时间内网 ...

  2. 【前端】【javascript】es6中的遍历器接口Iterator

    好久没发文章啦-.-为了证明我还活着,我决定从笔记里面抓一篇还算不乱比较像文章的发出来... 这些笔记是我在学es6的时候断断续续记录的,最近会一份一份整理陆陆续续发出来,顺便也自己再看一遍.我学习e ...

  3. 数据库ACID和mvcc

    一.数据库的ACID性: 原子性(atomicity).一致性(consistency).隔离性(isolation).持久性(durability). 二.原子性 1.原子性:一个事务要么全部完成, ...

  4. 3.1 第一个场景 HelloWorldScene

    HelloWorldScene.h #ifndef __HELLOWORLD_SCENE_H__ #define __HELLOWORLD_SCENE_H__ #include "cocos ...

  5. C++ template 声明与定义

    今天编码的时候,发现了一个错误,就是模板代码在链接的时候找不到方法. 情况大概如下: 在 "Manager.h" 中 class Manager { public: templat ...

  6. rtmp与hls流媒体服务器搭建:ubuntu下Nginx搭建初探与rtmp-module的添加

    关键词:Nignx(http服务器):rtmp,hls(流媒体服务) 前言:感谢开源,感谢战斗民族.现在在做流媒体服务的一些工作,流媒体服务器搭建的网上教程多入牛毛,但是细细查看,发现很多同志贴上来的 ...

  7. 1115. Counting Nodes in a BST (30)

    A Binary Search Tree (BST) is recursively defined as a binary tree which has the following propertie ...

  8. ACM学习历程—HDU5521 Meeting(图论)

    题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5521 学习菊苣的博客,只粘链接,不粘题目描述了. 题目大意就是一个人从1开始走,一个人从n开始走.让最 ...

  9. 电子商务网站SQL注入项目实战一例(转载)

    故事A段:发现整站SQL对外输出: 有个朋友的网站,由于是外包项目,深圳某公司开发的,某天我帮他检测了一下网站相关情况. 我查看了页面源代码,发现了个惊人的事情,竟然整站打印SQL到Html里,着实吓 ...

  10. flume入门之一:flume 安装及测试

    http://flume.apache.org/ flume下载:http://mirror.bit.edu.cn/apache/flume/1.7.0/apache-flume-1.7.0-bin. ...