[postgis-users] Error compiling postgis 2.3.5 and 2.4.2
Nahum Castro
nahumcastro at gmail.com
Sun Nov 26 09:40:23 PST 2017
2017-11-25 9:45 GMT-06:00 Sandro Santilli <strk at kbt.io>:
> On Fri, Nov 24, 2017 at 03:34:02PM -0600, Nahum Castro wrote:
> > 2017-11-24 14:40 GMT-06:00 Sandro Santilli <strk at kbt.io>:
> > > On Thu, Nov 23, 2017 at 10:58:32PM -0600, Nahum Castro wrote:
> > >
> > > > /usr/bin/ld: cannot find -lpq
> > >
> > > Did you install libpq-dev ? If so, where is it ?
> >
> > libpq is installed in /usr/local/pgsql/lib
>
> Is /usr/local/pgsql/lib in your /etc/ld.so.conf or
> any file in /etc/ld.so.conf.d ?
>
yes I have a file named postgresql.cof
with
/usr/local/lib
/usr/local/pgsql/lib
>
> Is that directory referenced by pg_config ?
>
> pg_config --ldflags
>
[nahum at localhost ~]$ pg_config --ldflags
-L../../src/common -Wl,--as-needed
-Wl,-rpath,'/usr/local/pgsql/lib',--enable-new-dtags
>
> Does build succeed if you run, before make:
>
> ldconfig -v /usr/local/pgsql/lib | libpq
>
> ?
>
libpqwalreceiver.so -> libpqwalreceiver.so
libpq.so.5 -> libpq.so.5.10
No, still fails.
[nahum at localhost loader]$ make
/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 ../rt_core/librtcore.a raster2pgsql.o
../../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 -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
collect2: error: ld returned 1 exit status
make: *** [raster2pgsql] Error 1
> --strk;
>
Is quite strange?
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/postgis-users
>
--
*Nahum Castro González*
Blvd. Perdigón 214, Brisas del Lago.
CP 37207
León, Guanajuato, México
Tel (477)1950304
Cel (477)1274694
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20171126/11146134/attachment.html>
More information about the postgis-users
mailing list