error starting postmaster

Started by Peter Choealmost 25 years ago2 messagesgeneral
Jump to latest
#1Peter Choe
choepete@mindspring.com

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

postmaster -D data

but when i try to:

createdb test

i get the following error:

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

where can i get libpq.so.2?

peter choe

#2Vivek Khera
khera@kcilink.com
In reply to: Peter Choe (#1)
Re: error starting postmaster

"PC" == Peter Choe <choepete@mindspring.com> 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: khera@kciLink.com Rockville, MD +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/