Problem installing PostGIS because of pg_config

Поиск
Список
Период
Сортировка
От Bob Holmstrom
Тема Problem installing PostGIS because of pg_config
Дата
Msg-id 998DA5E0-BB68-489F-AA2C-6F1A4D95A498@gmail.com
обсуждение исходный текст
Ответы Re: Problem installing PostGIS because of pg_config  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
Total novice here!  I am doing a neighborhood history mapping project and want to use a MapBox template.  In order to do so I need to "have PostgreSQL installed & running with a PostGIS database setup within it."

I have an iMac model 8,1 running Snow Leopard 10.6.8

I have downloaded and installed PostgreSQL 9.1  - The install ran as per the example shown in the www.enterprisedb.com/resources-community/pginst-guide 

I did not install any of the StackBuilder options as offered at the end of the install.

I downloaded PostGIS after installing the GEOS and PROJ4 frameworks as per the osm2pgsql installer instructions.  I also downloaded and installed XCODE in order to get access to a c++ compiler.

./configure now runs from the PostGIS directory and generates the following error message >  configure: error: could not find pg_config within the current path. You may need to try re-running configure with a --with-pgconfig parameter.

The PostGIS install instructions say:  --with-pgconfig=FILE

PostgreSQL provides a utility called pg_config to enable extensions like PostGIS to locate the PostgreSQL installation directory. Use this parameter (--with-pgconfig=/path/to/pg_config) to manually specify a particular PostgreSQL installation that PostGIS will build against.

I did not find pg_config with finder or spotlight.  I did find it at /Library/PostgreSQL/9.1/bin      it does not seem to have an extension


./configure--with-pgconfig=/Library/PostgreSQL/9.1/bin

and

./configure--with-pgconfig=/Library/PostgreSQL/9.1/bin/pg_config

both generate the error message "No such file or directory"

Can anyone help this novice out? I looked through PostgreSQL site and the only hint I found was something about "dev" extensions being needed.

Bob

В списке pgsql-novice по дате отправления:

Предыдущее
От: Antonio Carlos Salzvedel Furtado Junior
Дата:
Сообщение: Re: The use of cpu_index_tuple_cost by the query planner
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Problem installing PostGIS because of pg_config