我正在尝试按照以下说明安装 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) 手动指定 PostGIS 将针对其构建的特定 PostgreSQL 安装。
我使用“whereis pg_config”搜索 pg_config,但找不到。它是指“/etc/postgresql/9.0/main/pg_hba.conf”文件还是文件夹......?我错过了什么吗?在这一点上我真的很困惑。我想真正的混乱比虚假的清晰度更好:)。
我正在使用 PostgreSQL 9 / Ubuntu 10.10。任何帮助将不胜感激。