Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal:

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 What is the exact command you are running (copy/paste)? As simply issuing "su
postgres" should not run initdb on login.


 I typed

 # su postgres
 $ /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data

Well, that's quite different than what you mentioned before. You should do it like this:

su postgres
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/sfw/lib
export LD_LIBRARY_PATH
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data

But really you should probably use crle to update your ld search lib.




---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

              http://www.postgresql.org/docs/faq

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux