On Tue, Jun 27, 2000 at 07:38:14AM -0400, Sam Varshavchik wrote:
On Tue, 27 Jun 2000, Jim Cooley wrote:
I have just installed courier on a Sun Sever running Solaris 7. I
have been able to get smtp functionality as well as pop3 login
capability. I run into the following error when I attempt anything
else:
ld.so.1: submit: fatal: libstdc++.so.2.10.0: open failed: No such file
or directory
I got around this error earlier by setting LD_LIBRARY_PATH to the
place where my libstdc++.so.2.10.0 is located (/usr/local/lib/). I
have set this in etc/pop3d, etc/esmtpd, and etc/courierd.
My questions are these: Where is courier looking for this file by
default?
Wherever your operating system searches for shared libraries, at
runtime. Courier is not looking for anything. It is your operating
system's job to locate and load any required shared libraries, at runtime.
How do I get every piece of courier code that is run to have
its evnironment include LD_LIBRARY_PATH=/usr/local/lib/ ?
File a bug report with Sun. They install runtime libraries in
/usr/local/lib, but their runtime linker does not search this directory by
default. That makes no sense. Read the man page for ld.so -- it might be
possible to reconfigure the runtime linker, systemwide, to add
/usr/local/lib to the directory path searched by default.
Sun most likely won't support it. You might try the -r option the linker, which
basically does the same thing as LD_LIBRARY_PATH, except hard-codes it into the
binary. It's nasty, but it works well.