Dar*_*ech 3 gis postgresql postgis
我正在使用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)
我在具有相同配置的两台机器上检查了这一点并得到了相同的错误.我在这里错过了什么?
PostgreSQL分为几个包,psql安装后并不意味着还安装了开发包.
根据错误信息:
请安装PostgreSQL服务器开发包并重新运行configure
你需要:
# apt-get install postgresql-server-dev-9.1
Run Code Online (Sandbox Code Playgroud)
另请注意,有一个APT pgdg存储库 提供了postgres相关软件包(包括postgis)的最新预编译版本,您可以使用它们而不是自编译.
如果您的系统设置为使用此存储库,请执行以下操作:
# apt-get install postgresql-9.1-postgis-2.0
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3413 次 |
| 最近记录: |