错误“找不到PGXS Makefile";在Debian上安装PostGis时 [英] Error "the PGXS Makefile cannot be found" when installing PostGis on Debian
问题描述
我正在Debian机器上(实际上是紧要关头)通过psql安装PostGis.
I am in the process of installing PostGis over psql on a Debian machine (actually 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
在最后一步,我得到以下错误:
On the final step I get the following error:
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.
问题是我已经安装了Postgres:
The issue is that I do already have Postgres installed:
$ psql --version
psql (9.1.9)
我已在具有相同配置的两台计算机上检查了此错误,并得到了相同的错误.我在这里想念什么?
I have checked this on two machines with the same configuration and get the same error. What am I missing here?
推荐答案
PostgreSQL被分解为几个软件包,并且安装psql
并不意味着也安装了开发软件包.
PostgreSQL is broken down into several packages, and having psql
installed doesn't imply that the development packages are also installed.
根据错误消息:
请安装PostgreSQL服务器开发软件包并重新运行 配置
Please install the PostgreSQL server development packages and re-run configure
您需要:
# apt-get install postgresql-server-dev-9.1
还请注意,有一个 APT pgdg存储库,其中提供了与postgres相关的软件包(包括postgis)的最新预编译版本.您可以使用而不是自编译.
Also note there's a APT pgdg repository providing recent pre-compiled versions of postgres-related packages (including postgis) that you may use instead of self-compiling.
如果您的系统设置为使用此存储库,请执行以下操作:
If your system is set up to use this repository, just do:
# apt-get install postgresql-9.1-postgis-2.0
这篇关于错误“找不到PGXS Makefile";在Debian上安装PostGis时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!