[Ecls-list] About the need for ldconfig/ld.so.conf

Juan Jose Garcia-Ripoll worm at arrakis.es
Fri Oct 31 07:41:29 UTC 2003

On Friday 31 October 2003 16:21, Robert Lehr wrote:
> On Fri, Oct 31, 2003 at 09:17:37AM +0100, Julian St. wrote:
> > You probably have to add /usr/local/lib/ecl to your shared library
> > search path, so the runtime linker can find libecl.so. On FreeBSD this
> > works with 'ldconfig -m /usr/local/lib/ecl'. There should perhaps be a
> > script that does this after OS startup.
> After reading your email, I realized that I had forgotten to add
> /usr/lib/ecl to my /etc/ld.so.conf.  I was too tired to think this even
> with ldconfig screaming at me every time I tested the RPM.

There is no need to either update ld.so.conf or use ldconfig when installing 
ECL. If everything went ok, the executable is configured to find the library 
at ${prefix}/lib/ecl/, and this information is hardcoded via the flag --rpath 
which is passed to the linker. At least it should be this way, and it works 
on all systems I have tried it. Just do the following experiment (replace 
/home/juanjo/bin/ecl with your executable file):
	$ ldd /home/juanjo/bin/ecl
        libecl.so =>     /home/juanjo/lib/ecl//libecl.so
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libm.so.1 =>     /usr/lib/libm.so.1
        libc.so.1 =>     /usr/lib/libc.so.1


More information about the ecl-devel mailing list