I have to develop some functions onto postgresql server 9.2 based on Gnu Scientific Library. Under redhat I compile gsl with ./configure --prefix=/usr/local compile postgresql with ./configure --prefix=/usr/local --with-uuid-ossp --with-xml --with-xslt. After that I try to put our functions with -lgsl and receive error libfloader.so cannot load libgsl.so.0 file not found. Under gentoo or ubuntu all works fine. Any ideas ?