[postgis-users] Problems compiling Postgis from source in Ubuntu 9.10

Roger André randre at gmail.com
Wed Jan 6 15:26:13 PST 2010

Hi Mark,

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.

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.

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. ;)

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.

Thanks again,


On Wed, Jan 6, 2010 at 2:35 PM, Mark Cave-Ayland <
mark.cave-ayland at siriusit.co.uk> wrote:

> Roger André wrote:
>  - I got the following error when I ran configure:
>> $ 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
>> configure: error: the PGXS Makefile
>> /usr/lib/postgresql/8.4/lib/pgxs/src/makefiles/pgxs.mk <http://pgxs.mk>
>> cannot be found. Please install the PostgreSQL server development packages
>> and re-run configure.
> 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.
> 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:
> $ sudo ./configure --with-geosconfig=/usr/local/bin/geos-config
> --with-projdir=/usr/local
> 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...
> HTH,
> Mark.
> --
> Mark Cave-Ayland - Senior Technical Architect
> PostgreSQL - PostGIS
> Sirius Corporation plc - control through freedom
> http://www.siriusit.co.uk
> t: +44 870 608 0063
> Sirius Labs: http://www.siriusit.co.uk/labs
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20100106/36b5eca4/attachment.html>

More information about the postgis-users mailing list