【发布时间】:2011-06-05 12:19:27
【问题描述】:
我正在尝试按照以下说明安装 PostGIS:
wget http://postgis.refractions.net/download/postgis-1.5.2.tar.gz
tar zxvf postgis-1.5.2.tar.gz && cd postgis-1.5.2/
sudo ./configure && make && sudo checkinstall --pkgname postgis-1.5.2 --pkgversion 1.5.2-src --default
但它没有通过“sudo ./configure”命令。它说的最后一行:
configure: error: could not find pg_config within the current path. You may need to try re-running configure with a --with-pgconfig parameter.
于是我上网查了一下,发现一个地方是这样说的:
--with-pgconfig=FILE PostgreSQL 提供了一个名为 pg_config 的实用程序来 启用 PostGIS 等扩展 找到 PostgreSQL 安装 目录。使用此参数 (--with-pgconfig=/path/to/pg_config) 手动指定特定的 PostgreSQL 安装即 PostGIS 将建立反对。
我使用“whereis pg_config”搜索了 pg_config,但找不到。它是指“/etc/postgresql/9.0/main/pg_hba.conf”文件还是文件夹......?我错过了什么吗?在这一点上我真的很困惑。我想真正的混乱比虚假的清晰度更好:)。
我正在使用 PostgreSQL 9 / Ubuntu 10.10。任何帮助将不胜感激。
【问题讨论】:
标签: postgresql ubuntu postgis ubuntu-10.10