我正在尝试按照以下说明安装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。任何帮助都将不胜感激。