[postgis-users] PostGIS 2 RPM

Bborie Park bkpark at ucdavis.edu
Fri Oct 19 11:23:36 PDT 2012


A ticket was made for this issue.

http://trac.osgeo.org/postgis/ticket/2057

>From digging at my dev box, I'm wondering if you can give me the output
from gdal-config...

gdal-config --dep-libs

Looking at libtool's debug output when linking raster2pgsql, the -lpq is
coming from GDAL's dependency...

-bborie

On 10/19/2012 10:02 AM, Jeff Lake wrote:
> LD_LIBRARY_PATH=/usr/pgsql-9.1/lib make
> 
> same results .... can't find -lpq
> 
> 
> 
> running make in raster/loader
> 
> /bin/sh ../../libtool --mode=link gcc -g -O2  -fPIC -DPIC  -Wall
> -Wmissing-prototypes -I../rt_core -I../../liblwgeom 
> -I/usr/local/include -I/usr/local/include   raster2pgsql.o
> ../rt_core/librtcore.a ../rt_core/librtcore.a
> ../../liblwgeom/liblwgeom.la -L/usr/local/lib -lgdal -L/usr/local/lib
> -lgeos_c  -lc -lm -o raster2pgsql
> libtool: link: gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes
> -I../rt_core -I../../liblwgeom -I/usr/local/include -I/usr/local/include
> raster2pgsql.o -o .libs/raster2pgsql  ../rt_core/librtcore.a
> ../../liblwgeom/.libs/liblwgeom.so -L/usr/local/lib
> /usr/local/lib/libproj.so /usr/local/lib/libgdal.so -L/usr/lib64
> -L/usr/kerberos/lib64 -L/usr/lib64/mysql -lsqlite3
> /usr/lib64/libexpat.so -lgif -ljpeg -lpng -lpq -lcurl -lgssapi_krb5
> -lkrb5 -lk5crypto -lcom_err -lidn -lz -lmysqlclient -lpthread -lrt -lssl
> -lcrypto -ldl /usr/local/lib/libgeos_c.so /usr/local/lib/libgeos.so -lc
> -lm -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/lib64
> /usr/bin/ld: cannot find -lpq
> collect2: ld returned 1 exit status
> make: *** [raster2pgsql] Error 1
> 
> 
> *Jeff Lake*
> MichiganWxSystem <http://www.michiganwxsystem.com>
> AllisonHouse <http://www.allisonhouse.com>
> GRLevelXStuff <http://www.grlevelxstuff.com>
> On 10/19/2012 12:43, Bborie Park wrote:
>> LD_LIBRARY_PATH=/usr/pgsql-9.1/lib make
> 
> 
> 
> 
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
> 

-- 
Bborie Park
Programmer
Center for Vectorborne Diseases
UC Davis
530-752-8380
bkpark at ucdavis.edu



More information about the postgis-users mailing list