Subject: trouble with shared libs
To: None <current-users@netbsd.org>
From: Caffeinate The World <mochaexpress@yahoo.com>
List: current-users
Date: 03/30/2003 19:02:56
NetBSD-1.6 / Alpha
I run two versions of Postgresql. Current stabble and development.
Stabble does production, while Postgresql-dev is used for testing issue
with NetBSD.
My problem lies in the fact that no matter which version of Postgresql
it always uses my production library in /usr/local/lib.
# cat /etc/ld.so.conf
/usr/lib
/usr/local/lib
/usr/pkg/lib
/usr/X11R6/lib
/usr/local/lib/mysql
/usr/local/lib/php
---
# pwd
/usr/local_install/postgresql-7.3.2/bin
# ldd ./psql
./psql:
-lcrypt.0 => /usr/lib/libcrypt.so.0
-lresolv.1 => /usr/lib/libresolv.so.1
-lpq.3 => /usr/local/lib/libpq.so.3
-lz.0 => /usr/lib/libz.so.0
-ledit.2 => /usr/lib/libedit.so.2
-lcurses.5 => /usr/lib/libcurses.so.5
-lm.0 => /usr/lib/libm.so.0
-lutil.6 => /usr/lib/libutil.so.6
-lc.12 => /usr/lib/libc.so.12
---
# pwd
/usr/local_install/postgresql-7.4-dev-20030324/bin
# ldd psql
psql:
-lcrypt.0 => /usr/lib/libcrypt.so.0
-lresolv.1 => /usr/lib/libresolv.so.1
-lpq.3 => /usr/local/lib/libpq.so.3
-lz.0 => /usr/lib/libz.so.0
-ledit.2 => /usr/lib/libedit.so.2
-lcurses.5 => /usr/lib/libcurses.so.5
-lm.0 => /usr/lib/libm.so.0
-lutil.6 => /usr/lib/libutil.so.6
-lc.12 => /usr/lib/libc.so.12
---
Note that both installation uses
-lpq.3 => /usr/local/lib/libpq.so.3
How could I stop it from using libpq.so.3 in /usr/local/lib? Remove
/usr/local/lib from /etc/ld.so.conf?
Thomas
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com