(1)安装gdal

  # wget http://download.osgeo.org/gdal/2.0.0/gdal-2.0.0.tar.gz

  # tar zxvf gdal-2.0.0.tar.gz

  # cd gdal-2.0.0

  # ./configure --prefix=/usr/local/gdal --with-xml2=/usr/bin/xml2-config --with-static-proj4=/usr/bin/proj

  # make

  # make install

(2)安装geos

  # wget http://download.osgeo.org/geos/geos-3.5.0.tar.bz2

  # tar jxvf geos-3.5.0.tar.bz2  

  # cd geos-3.5.0  

  # ./configure --prefix=/usr/local/geos3

  # make

  # make install

(3)安装geos

  # tar jxvf geos-3.5.0.tar.bz2

  # cd geos-3.5.0

  # ./configure --prefix=/usr/local/geos3

  # make

  # make install

配置依赖库的路径信息

  # vi /etc/ld.so.conf

/usr/local/pgsql9_4_8/lib(根据自己安装的路径改动)

/usr/local/gdal/lib (根据自己安装的路径改动)

/usr/local/geos3/lib (根据自己安装的路径改动)

/usr/local/lib

#ldconfig

(4)postgis安装

  1、posgis安装

  # wget http://download.osgeo.org/postgis/source/postgis-2.2.2.tar.g  

  # tar zxvf postgis-2.2.2.tar.gz

  # cd postgis-2.2.2.tar.gz

  # ./configure --with-pgconfig=/usr/local/pgsql9_4_8/bin/pg_config --with-gdalconfig=/usr/local/gdal/bin/gdal-config --with-geosconfig=/usr/local/geos3/bin/geos-config 

  # make

  2、extensions安装

  # cd extensions

  # cd postgis

  # make clean

  # make 

  # make install

  3、postgis_topology安装

  # cd postgis_topology

  # make clean

  # make 

  # make install

  4、postgis_tiger_geocoder安装

  # cd postgis_tiger_geocoder

  # make clean

  # make 

  # make install

  5、添加拓展

  # su - postgres

  进入控制台执行以下语句:

    CREATE EXTENSION postgis;

    CREATE EXTENSION fuzzystrmatch; 

    CREATE EXTENSION postgis_tiger_geocoder;

    CREATE EXTENSION postgis_topology;

    CREATE EXTENSION pgrouting;

(5)pgrouting安装

  1、CGAL-4.8.1.tar.xz 安装

  # tar Jxvf CGAL-4.8.1.tar.xz

  # cd CGAL-4.8.1

  # yum install gmp gmp-devel

  # yum install mpfr mpfr-devel

  # cmake .

  # make

  # make install

  2、pgrouting 安装

  #cd ..

  # tar zxvf pgrouting-2.2.0.tar.gz

  # cd pgrouting-pgrouting-2.2.0/

  # mkdir build

  # cd build/

  # cmake3 ..

  # make

  # make install

Linux下postgres安装fuzzystrmatch其他拓展包的更多相关文章

  1. 【夯实PHP基础系列】linux下yum安装PHP APC

    Alternative PHP Cache(可选PHP缓存),依赖于 PECL扩展库 用源码方式安装,直接yum就行了:首先要安装apc的依赖包:yum install php-pear php-de ...

  2. Linux学习心得之 Linux下ant安装与使用

    作者:枫雪庭 出处:http://www.cnblogs.com/FengXueTing-px/ 欢迎转载 Linux学习心得之 Linux下ant安装与使用 1. 前言2. ant安装3. 简单的a ...

  3. linux下编译安装vim7.4并安装clang_complete插件

    linux下编译安装vim7.4并安装clang_complete插件 因为debian里软件仓库中下载安装的vim是不支持python写的插件的(可以打开vim,在命令模式先输入:py测试一下),导 ...

  4. Linux下编译安装Apache Http Server

    Linux下编译安装Apache Http Server [TOC] 1.下载httpd-2.4.12.tar.bz2 wget http://mirror.bit.edu.cn/apache/htt ...

  5. Linux下memcached安装和启动方法

    Linux下memcached安装和启动方法 1. 首先下载memcached 和 libevent 包. Memcached用到了libevent这个库用于Socket的处理.下面是下载的两个包文件 ...

  6. [转]Caffe在Linux下的安装,编译,实验

    Caffe在Linux下的安装,编译,实验  原文地址:http://www.cnblogs.com/evansyang/p/6150118.html 第一部分:Caffe 简介 caffe是有伯克利 ...

  7. 在Ubuntu Linux下怎样安装QQ

    最近好多人在吐槽Linux下上QQ简直就是煎熬,网页版的不方便,网上各种版本的QQ要么是功能不全.要么是界面丑到爆,要么是运行不稳定.那么这次为大家带来一个功能完整.运行稳定的wineQQ安装过程. ...

  8. Linux下编译安装qemu和libvirt

    目录 [hide] 1 安装qemu 1.1 qemu介绍 1.2 下载源文件 1.3 编译安装 2 安装libvirt 2.1 libvirt介绍 2.2 下载libvirt 2.3 编译安装 3  ...

  9. Linux 下如何安装软件?

    http://zhidao.baidu.com/link?url=OkQCOZtVMXhasC8x9zFTZOumsFKf0WW25Ckr2wBF1xO08EsjrBpnMaTBlIAUYdxZ408 ...

随机推荐

  1. (转) Linux 内核运行参数修改——sysctl命令

    原文:https://blog.csdn.net/u012707739/article/details/78254241 sysctl命令被用于在内核运行时动态地修改内核的运行参数,可用的内核参数在目 ...

  2. mysql:服务器错误代码

    服务器错误代码和消息 原文:https://dev.mysql.com/doc/refman/5.7/en/error-messages-server.html MySQL的程序有几种类型的错误信息时 ...

  3. nginx源码编译以及源码编译过程中遇到的问题

    本文主要讲nginx安装以及安装过程中遇到的问题. 谈到nginx 必须聊聊它的起源和发展. nginx是由俄罗斯工程师Igor Sysoev 用C语言开发的一个免费开源的Web服务器软件,于2004 ...

  4. 一头扎进Spring之---------Spring七大核心模块

    Spring七大核心模块 核心容器(Spring Core) 核心容器提供Spring框架的基本功能.Spring以bean的方式组织和管理Java应用中的各个组件及其关系.Spring使用BeanF ...

  5. windows下python2.7版本numpy,Scipy,matplotlib,sklearn安装

    系统是windows32位,安装了python2.7.13. 安装顺序就是numpy,Scipy,matplotlib,sklearn. 首先是更新一下pip (确保pip能使用) 然后将setupt ...

  6. mysql中sql中的注释

    学习mysql好久了,oracle也是,但是经常使用oracle,有一天突然想,oracle的sql语法中有注释,那么mysql中是不是也有注释,于是从网上搜了一下,原来mysql中的注释还真不少,下 ...

  7. idp sp sso---SAML Single Sign-On (SSO) Service for Google Apps

    src: https://developers.google.com/google-apps/sso/saml_reference_implementation Security Assertion ...

  8. 《Think Python》第16章学习笔记

    目录 <Think Python>第16章学习笔记 16.1 Time 16.2 纯函数(Pure functions) 16.3 修改器(Modifiers) 16.4 原型 vs. 方 ...

  9. UOJ #188. 【UR #13】Sanrd

    Description 给定 \(\sum_{i=l}^r f[i]\) \(f[i]=\) 把 \(i\) 的每一个质因子都从小到大排列成一个序列(\(p_i^{c_i}\)要出现 \(c_i\) ...

  10. Common class for judge IPV6 or IPV4

    import java.util.regex.Pattern; import org.apache.http.annotation.Immutable; /** * A collection of u ...