Hi Mark,<br><br>I see from the Changelog that you committed many of the pgxs updates, so thanks for the response.  A couple points I'd like to clarify.<br><br>1. I have not installed ANY Postgresql code from aptitude, nor do I wish to.  Everything is fresh source code installed under /usr/local, and I would very much like to keep it that way.  You're right that there is another pg_config in /usr/bin/pg_config though, but I have no idea how it got there.  It's also strange that when I go through the locations specified by /usr/bin/pg_config, only some of them exist.  Looks like some sort of partial install, or something.  aptitude also has no record of installing any postgres* package, so not sure how it got there.<br>
<br>2. Totally willing to grant you that my configure options might be incorrect for PostGIS 1.4. I didn't realize they had changed from 1.3 to 1.4.  I'll have a closer look at the ./configure --help output to make sure I specify them correctly.   Would help if I pointed to the right pg_config. ;)<br>
<br>3. I am going to clean out all traces of the Ubuntu package on the system, and then will see if I can get the source to compile properly.<br><br>Thanks again,<br><br>Roger<br>--<br><br><br><br><br><div class="gmail_quote">
On Wed, Jan 6, 2010 at 2:35 PM, Mark Cave-Ayland <span dir="ltr"><<a href="mailto:mark.cave-ayland@siriusit.co.uk">mark.cave-ayland@siriusit.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Roger André wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
- I got the following error when I ran configure:<br>
$ sudo ./configure --with-pgsql=/usr/local/pgsql/bin/pg_config --with-geos=/usr/local/bin/geos-config --with-proj=/usr/local/ --with-proj-libdir=/usr/local/lib<br>
<br></div>
configure: error: the PGXS Makefile /usr/lib/postgresql/8.4/lib/pgxs/src/makefiles/<a href="http://pgxs.mk" target="_blank">pgxs.mk</a> <<a href="http://pgxs.mk" target="_blank">http://pgxs.mk</a>> cannot be found. Please install the PostgreSQL server development packages and re-run configure.<br>

</blockquote>
<br>
It looks as if you have multiple copies of PostgreSQL installed on your computer one in /usr/local and one in /usr, i.e. you have installed one from packages using aptitude and compiled another one by hand. You are also using the wrong --with arguments from the 1.3 release that don't work with PostGIS 1.4.<br>

<br>
Karmic Koala already comes with PostgreSQL 8.4 so you should "make uninstall" in your hand-compiled source tree to remove all traces of it from /usr/local. Then install the postgresql-server-dev-8.4 package and re-run configure like this:<br>

<br>
$ sudo ./configure --with-geosconfig=/usr/local/bin/geos-config --with-projdir=/usr/local<br>
<br>
I really am tempted to come up with a fix for this brain-dead piece of Debian packaging as it seems to catch a lot of people out...<br>
<br>
<br>
HTH,<br>
<br>
Mark.<br>
<br>
-- <br>
Mark Cave-Ayland - Senior Technical Architect<br>
PostgreSQL - PostGIS<br>
Sirius Corporation plc - control through freedom<br>
<a href="http://www.siriusit.co.uk" target="_blank">http://www.siriusit.co.uk</a><br>
t: +44 870 608 0063<br>
<br>
Sirius Labs: <a href="http://www.siriusit.co.uk/labs" target="_blank">http://www.siriusit.co.uk/labs</a><br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</blockquote></div><br>