On Sat, 24 Jan 2015, Vin Shelton wrote:
On Thu, Jan 8, 2015 at 6:24 AM, Vince Vielhaber
<vev(a)michvhf.com> wrote:
>
> Configuring xemacs with postgresql support I get this:
>
> configure:15806: gcc -o conftest -g -O3 -Wall -Wno-switch -Winline
> -Wmissing-prototypes -Wsign-compare -fno-strict-aliasing -Wshadow
> -I/usr/local/pgsql/include -L/usr/local/pgsql/lib conftest.c
> -ljpeg -lz -lXt -lX11 -lSM -lICE -lncurses -lpq -lm -lutil 1>&5
> ./conftest: error while loading shared libraries: libpq.so.4: cannot open
> shared object file: No such file or directory
> configure: failed program was:
> #line 15802 "configure"
> #include "confdefs.h"
> int main(int c,char *v[]){return 0;}
>
> but:
>
> $ ls -l /usr/local/pgsql/lib/libpq*
> -rw-r--r-- 1 root postgres 197530 Oct 16 23:33 /usr/local/pgsql/lib/libpq.a
> lrwxrwxrwx 1 root postgres 12 Oct 16 23:33 /usr/local/pgsql/lib/libpq.so ->
libpq.so.4.1
> lrwxrwxrwx 1 root postgres 12 Oct 16 23:33 /usr/local/pgsql/lib/libpq.so.4 ->
libpq.so.4.1
> -rwxr-xr-x 1 root postgres 139625 Oct 16 23:33 /usr/local/pgsql/lib/libpq.so.4.1
> $
>
> It's there.
>
> uname -a:
>
> Linux paprika 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 GNU/Linux
>
> Configure options:
>
> ./configure \
> --with-toolbars=yes \
> --with-x11 \
> --site-prefixes=/usr/local/pgsql \
> --with-postgresql
>
> Any suggestions? For now I'll compile without postgres support.
is /usr/local/pgsql/lib in /etc/ld.so.conf? My guess would be that,
in addition to the "-L" ld flag, you need to fix up /etc/ld.so.conf
and run ldconfig.
- Vin
That was it. Thanks!
Vince.
--
Michigan VHF Corp.
http://www.nobucks.net/ http://www.CDupe.com/
http://www.foggymist.com The Foggy Mist Emporium
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta