ubuntu14.04源码安装postgresql 9.1

时间:2014-08-10 13:01:40   收藏:0   阅读:231

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

bubuko.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

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!