>>>>> "PC" == Peter Choe <[EMAIL PROTECTED]> writes:

PC> i just installed postgresql7.1 on a freebsd 4.3-stable machine.  and i
PC> am able to start it with:

PC> postmaster -D data

PC> but when i try to:

PC> createdb test

PC> i get the following error:

PC> /usr/libexec/ld-elf.so.1: Shared object "libpq.so.2" not found

PC> where can i get libpq.so.2?

Every time you boot, you need to run ldconfig to tell it where to find
your shared libs.  I use this startup script called
/usr/local/etc/rc.d/00postgres-client.sh:

--cut here--
#!/bin/sh

case "$1" in
        start)
                /sbin/ldconfig -m /usr/local/pgsql/lib
                ;;
        stop)
                ;;
        *)
                echo ""
                echo "Usage: `basename $0` { start | stop }"
                echo ""
                exit 64
                ;;
esac
--cut here--


-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.                Khera Communications, Inc.
Internet: [EMAIL PROTECTED]       Rockville, MD       +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Reply via email to