[postgis-devel] Problems installing PostGIS 2.0SVN on PostgreSQL 9.1

dustymugs dustymugs at gmail.com
Fri Nov 18 10:44:35 PST 2011


On 11/18/2011 10:39 AM, Steffen Weber wrote:
>> You probably have libgeos-3.3.so in /usr/local/lib or something
>> because otherwise postgis would not be attempting to use new
>> functions exposed by that lib. Check out geos-config --version.
>
> Yes... I have the following files in /usr/local/lib/
>
> libgeos-3.3.1.so
> libgeos.a
> libgeos.la
> libgeos.so ->  libgeos-3.3.1.so
> libgeos_c.a
> libgeos_c.la
> libgeos_c.so ->  libgeos_c.so.1.7.1
> libgeos_c.so.1 ->  libgeos_c.so.1.7.1
> libgeos_c.so.1.7.1
> # geos-config --version
> # 3.3.1
>
>> If confirmed, I suggest you drop the old library, which I guess
>> was installed by package manager.
>
> I installed GEOS 3.3.1 from source...
>
> Not sure where libgeos-3.2.2 is coming from...
>
> As you suggested (did I understand right?), I manually removed libgeos-3.2.2.so in /usr/lib/, resulting in:
>
> # ldd /usr/local/pgsql/lib/postgis-2.0.so | grep geos
>
> # libgeos_c.so.1 =>  /usr/lib/libgeos_c.so.1 (0x00007fbec2c4b000)
> # libgeos-3.2.2.so =>  not found
>
> Not sure what to do exactly... I don't understand why postgis-2.0.so is still referring to libgeos-3.2.2.so, because
> I cconfigure postgis with ./configure --with-geosconfig=/usr/local/geos-3.3.1/tools/geos-config.
>
> Thanks.
>

You'll want to properly uninstall geos-3.2.2 using your distro's package 
manager.  PostGIS is getting 3.2.2 instead of 3.3.1 because /usr/lib is 
higher up than /usr/local/lib in your system's library search path.

-bborie



More information about the postgis-devel mailing list