在ubuntu14.04上安装postgis1.5

How to install PostGIS 1.5 on Ubuntu 14.04

我的项目比较老,原来用的是PosgGre9.1 +postgis1.5,新安装的时候找不到postgis1.5,只有2.0以上,我装了2.2,发现原来的数据备份不能导进去,也不能用原来的数据schema,也用不了了,怎么办呢,只呢去装postgis1.5,postgis1.5的地理信息相关的数据格式处理,在2.2里找不到了。

安装吧,找了一圈,一下步骤就来装吧

Several components are needed, which can either be built from source or installed from pre-built packages, as shown below.

1 ,如果你装了postgresql了,这一步就不用了,其实9.5也可以,不一定非要装8.4,Install prerequisite packages using:

sudo apt-get install build-essential postgresql-8.4 postgresql-server-dev-8.4 libxml2-dev proj

2,这个就是必须了 Optional packages for testing PostGIS:

sudo apt-get install libcunit1-dev

3,Optional packages for building documentation:

sudo apt-get install xsltproc docbook-xsl imagemagick

(for building PDF documentation, add dblatex, but expect a large download)

Build GEOS 3.3.x

 ¶

转载自:https://blog.csdn.net/mingkiller/article/details/50952047

You may also like...