shared library problem

Peter Kwan peter@personmail.com
Sun Apr 13 07:30:00 2003


After compiling Xvnc and starting it with vncserver, I get the following
error in the session log file .

-------------
ld.so.1: Xvnc: fatal: libstdc++.so.5: open failed: No such file or
directory
xsetroot:  unable to open display 'sun:1'
xterm Xt error: Can't open display: sun:1
twm:  unable to open display "sun:1"
-------------

How to make Xvnc find the libarary file which is actullay located in
/usr/local/lib ?

Thanks .

Peter