Linux shared libs

There had been some reports of problems with shared libraries on Linux, especially on older Linux distributions with varying configurations:
These days UNIX programs rely on shared libraries containing routines which are used commonly by many programs. This avoids redundant code in each program, saves space and makes things tricky at runtime: Problems appear if the required shared library is not found at all, or not found as being the right version.
To list all required shared libs on your Linux, do:

$ ldd ./rshow
libtk8.0.so => /usr/local/tcl/lib/shared/libtk8.0.so (0x4000a000)
libMesaGL.so.3 => /usr/local/lib/libMesaGL.so.3 (0x4010d000)
libMesaGLU.so.3 => /usr/local/lib/libMesaGLU.so.3 (0x401e5000)
...
If some libraries can't be resolved (libMesaGL.so.3 => not found), rshow will not run and you have to find these libraries on your system (or on the net) and set an environment variable to make them available (possibly after downloading them). To add a directory with shared libs:
export LD_LIBRARY_PATH=/usr/local/tcl-tk/lib:
Older, pre-patch 1, versions of libtk8.0.so crash rshow. To check which version you have, check whether to following commands returns 8.0p1 or higher patch level (8.0p2 etc). Substitute the full library name with your location of libtk8.0.so:
strings -a /usr/X11R6/lib/libtk8.0.so | grep 8.0
You might want to download and try these Linux libs: libtk8.0.so. Finally, if tcl/tk complains about tcl libs not being found, you have to set export TK_LIBRARY=... and export TCL_LIBRARY=... to point to your tcl/tk directory.

In case of persistent trouble, mail some info about your configuration:

(uname -a ; ldd rshow ) | mail -s rshow_debug rshow@pab-opto.de
And include anything that may be of use to me for debugging.

Back to rshow main page