您的位置:首页 > 博客中心 > 数据库 >

ubuntu14.04源码安装postgresql 9.1

时间:2022-03-13 22:41

项目需要使用gisgraphy,怎奈gisgraphy3.0只支持postgis1.5.因此只能安装老版本的posgresql和postgis了,从postgis的support matrix图可以看到postgis不同版本支持的postgresql,

gxlsystem.com,布布扣

我安装的是postgresql9.1.14.

1.下载postgresql9.1版本的源码,http://www.postgresql.org/docs/9.1/static/install-short.html

2.解压缩,然后切换到解压缩后的文件夹下

3.运行命令:./configure

  此处可能会出现如下错误:

configure: error: readline library not found
我的解决办法是:安装libreadline6-dev

 sudo apt-get install libreadline6-dev

问题得到解决

4.运行命令:

  make

  make install

ubuntu14.04源码安装postgresql 9.1,布布扣,bubuko.com

热门排行

今日推荐

热门手游