[postgis-users] Error compiling postgis 2.3.5 and 2.4.2

Sandro Santilli strk at kbt.io
Sun Nov 26 10:22:02 PST 2017

On Sun, Nov 26, 2017 at 11:40:23AM -0600, Nahum Castro wrote:

>     libpq.so.5 -> libpq.so.5.10


> 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 -L/usr/lib64 -lSFCGAL
> /usr/local/lib/libgdal.so /usr/local/lib/libproj.so -ljson-c -lsqlite3
> -lodbc -lodbcinst -lexpat -lpq -lpthread -lrt -lpcre -lcurl -lxml2 -lz -ldl
> /usr/local/lib/libgeos_c.so /usr/local/lib/libgeos.so -lc -lm
> /usr/bin/ld: cannot find -lpq

I'm not sure why libtool does not look into the default ldconfig
directory, does adding -L/usr/local/pgsql/lib to the line above
(from gcc onward) fixes the build ?


More information about the postgis-users mailing list