[postgis-users] Problems compiling PostGIS on Solaris 2.10/SparcV9

Alexander Von Luenen Alex.von-Luenen at port.ac.uk
Tue May 19 11:24:43 PDT 2009


Hi,

unfortunately, I encountered the next problem. When running

 psql -d vob -U postgres -f lwpostgis.sql

I get the error

ERROR:  could not access file "$libdir/liblwgeom": No such file or directory

pg_config --pkglibdir returns '/opt/csw/postgresql/lib', liblwgeom.so.* is in there.

Running 'ldd /opt/csw/postgresql/lib/liblwgeom.so' returns

        libgeos_c.so.1 =>        /usr/local/lib/libgeos_c.so.1
        libproj.so.0 =>  /opt/csw/lib/libproj.so.0
        libgcc_s.so.1 =>         /usr/sfw/lib/libgcc_s.so.1
        libgeos-3.1.0.so =>      /usr/local/lib/libgeos-3.1.0.so
        libstdc++.so.6 =>        /usr/sfw/lib/libstdc++.so.6
        libm.so.2 =>     /lib/libm.so.2
        libm.so.1 =>     /lib/libm.so.1
        libc.so.1 =>     /lib/libc.so.1
        /platform/SUNW,T5440/lib/libc_psr.so.1

Is there something I am missing? Different versions? I have PostgreSQL 8.3.1 installed from CSW, and have compiled PostGIS 1.3.6 w/ Proj4 4.4.8 (from CSW) and GEOS 3.1.0 (compiled from source).

TIA,
Alex





Dr Alexander von Luenen
Senior Research Associate
Great Britain Historical GIS
Dept. of Geography
University of Portsmouth
Buckingham Building, Lion Terrace
Portsmouth, PO1 3HE, UK
tel: +44-(0)23-9284-2500
fax: +44-(0)23-9284-2512


>>> "Alexander Von Luenen" <Alex.von-Luenen at port.ac.uk> 19/05/2009 18:04 >>>
Indeed. One can really google too much, can't you? ;-)
Using '--with-pgsql' does the trick. Thanks a lot!

Alex



Dr Alexander von Luenen
Senior Research Associate
Great Britain Historical GIS
Dept. of Geography
University of Portsmouth
Buckingham Building, Lion Terrace
Portsmouth, PO1 3HE, UK
tel: +44-(0)23-9284-2500
fax: +44-(0)23-9284-2512


>>> Mark Cave-Ayland <mark.cave-ayland at siriusit.co.uk> 19/05/2009 17:46 >>>
Alexander Von Luenen wrote:

> Hi,
> 
> I am trying to compile PostGIS on a SUN T5440 running Solaris 2.10, using gcc3.4.3. I have PostgreSQL 8.3.1 
 > installed from the CSW repository, which has both 32bit and 64bit 
versions installed. Although the pg_config
 > installed in /opt/csw/postgresql/bin is a 32bit binary (as I could 
check with 'file'), all paths etc. it returns
 > are to the 64bit version of PostgreSQL. As I have compiled all 
libraries (GEOS, PROJ4, etc) as 32bit, this results
 > in a linker error when compiling PostGIS, since it attempts to link 
the 32bit libs to the 64bit PostgreSQL libs.
 > Using '-m32' as CPPFLAGS/CXXFLAGS didn't help. There is also a 
pg_config32 in the same directory as pg_config.
 > How can I force configure to use this one? '--with-pgconfig' didn't 
work. The only solution I could think of
 > is deleting/renaming pg_config, and setting a softlink to 
pg_config32. Any suggestions anybody?
> 
> Cheers,
> Alex

Hi Alex,

It looks as if you've picked up the new SVN documentation instead - the 
options for PostGIS 1.4 have been changed to make them easier to 
understand. The option you need to pass to configure for the 1.3 series 
is --with-pgsql=/path/to/pg_config.


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
_______________________________________________
postgis-users mailing list
postgis-users at postgis.refractions.net 
http://postgis.refractions.net/mailman/listinfo/postgis-users 

_______________________________________________
postgis-users mailing list
postgis-users at postgis.refractions.net 
http://postgis.refractions.net/mailman/listinfo/postgis-users




More information about the postgis-users mailing list