相关疑难解决方法(0)

在Debian上安装PostGis时出错"无法找到PGXS Makefile"

我正在使用Debian机器上的psql安装PostGis(实际上是crunchbang).

我已完成以下步骤:

$ wget http://download.osgeo.org/postgis/source/postgis-2.0.3.tar.gz
$ tar xzf postgis-2.0.3.tar.gz
$ cd postgis-2.0.3
$ ./configure
Run Code Online (Sandbox Code Playgroud)

在最后一步,我得到以下错误:

configure: error: the PGXS Makefile /usr/lib/postgresql/9.1/lib/pgxs/src/makefiles/pgxs.mk cannot be found. Please install the PostgreSQL server development packages and re-run configure.
Run Code Online (Sandbox Code Playgroud)

问题是我已经安装了Postgres:

$ psql --version
psql (9.1.9)
Run Code Online (Sandbox Code Playgroud)

我在具有相同配置的两台机器上检查了这一点并得到了相同的错误.我在这里错过了什么?

gis postgresql postgis

3
推荐指数
1
解决办法
3413
查看次数

标签 统计

gis ×1

postgis ×1

postgresql ×1