[postgis-users] How to tell postgis configure to see different makefile, etc.

jcz at northredoubt.com jcz at northredoubt.com
Wed May 11 12:39:02 PDT 2011


Quoting Sandro Santilli <strk at keybit.net>:

> On Wed, May 11, 2011 at 01:42:07PM -0400, jcz at northredoubt.com wrote:
>
>> Interesting.
>> jcz at dell390:/usr/local/src/postgis-1.5.2$ pg_config --pgxs
>> /usr/lib/postgresql/8.4/lib/pgxs/src/makefiles/pgxs.mk
>>
>> but, the directory /usr/lib/postgresql/ doesn't exist anymore.
>>
>> what is pg_config reading to get this information?
>
> Nothing, it's hard-coded. See which package in  your distribution
> contains that pg_config, maybe you want to remove that.
>
> Set PATH=/usr/local/bin:$PATH and try again.
>
> --strk;

That was annoying. The packages were rather persistent and I had to do  
all this to clean them out and relink... thanks!

sudo apt-get autoremove
sudo apt-get remove --purge postgresql-client
sudo apt-get remove --purge postgresql-client-8.4
sudo apt-get remove --purge postgresql-client-common
apt-get clean

still didn't work.
jcz at dell390:/usr/local/src/postgis-1.5.2$ ls -l /usr/bin/pg*
-rwxr-xr-x 1 root root 26260 2011-02-02 03:56 /usr/bin/pg
-rwxr-xr-x 1 root root 25912 2011-04-20 10:27 /usr/bin/pg_config
-rwxr-xr-x 1 root root 13860 2010-07-06 20:21 /usr/bin/pgrep

jcz at dell390:/usr/local/src/postgis-1.5.2$ sudo rm /usr/bin/pg_config

then
sudo ln -s /usr/local/pgsql/bin/pg_config /usr/bin/pg_config
sudo apt-get install libxml2-dev

and finally got
PostGIS is now configured for i686-pc-linux-gnu






More information about the postgis-users mailing list