Installation 在Dreamhost上配置PostGis

Installation 在Dreamhost上配置PostGis,installation,postgis,dreamhost,Installation,Postgis,Dreamhost,我已经在我的Dreamhost托管VPS上安装了PostGIS,并进入了流程的配置部分,详情如下: 在最后一行中,当我运行./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-pgco

我已经在我的Dreamhost托管VPS上安装了PostGIS,并进入了流程的配置部分,详情如下:

在最后一行中,当我运行./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安装

但是,我找不到找到此文件所在位置的方法。我知道我已经安装了PostGre,因为当我运行此程序时,它会这样说:

aptitude show postgresql | grep State
带着

State: installed

但我不知道接下来该怎么办。感谢您的帮助。谢谢

您还需要安装PostgreSQL的“dev”包。例如,使用Debian6.0(挤压),这个包被称为。它将为您提供配置PostGIS的
pg_config


有关各种Linux发行版上各种版本PostGIS的简单安装说明。

谢谢!这比“简易”软件包和/或图形安装要简单得多。当然,当我这么说并尝试检查时,它会给我一个错误<代码>警告:配置无法找到单元测试所需的CUnit。为了启用单元测试,您必须安装CUnit,然后重新运行configure。尝试在PostGIS站点上查找有关CUnit的信息,但没有找到它……并且此错误也发生在数据库初始化(核心模块)过程中。有关详细信息,请检查/tmp/pgis_reg/regresse_log dropdb:无法连接到数据库postgres:致命:用户“username”make[1]的身份验证失败:***[check]错误1 make[1]:离开目录/home/username/postgis-2.0.0/regresse'make:**[check]错误1'为您的第一期安装软件包
libcunit1 dev
。要进行测试,您还需要将您的用户名添加为PostgreSQL用户,您可以在pgAdminIII中执行此操作。