On 2 Oct 2012, Uwe Brauer told this:
thanks, that worked in the sense that matlab starts. However when I start Matlab I receive ERROR: ld.so: object '/opt/trinity/lib/kgtk/libkgtk2.so' from LD_PRELOAD cannot be preloaded: ignored.
This ERROR is harmless: it probably means that /opt/trinity/lib/kgtk/libkgtk2.so is 64-bit and matlab is 32-bit, though a number of other more unlikely possibilities exist.
(Well, it's harmless except that Matlab won't use the qt-kgtk themes.)
and worse I cannot use the tcsh shell. Everytime I use the shell this message appears and then env not defined and my settings in .login and .tcshrc are ignored.
I think you'll find that these two things are unrelated. The error message has no effect on anything else other than that the library in LD_PRELOAD / /etc/ld.so.preload is not loaded. None. I suspect a bug in your .login or .tcshrc. (I'd offer debugging suggestions, but it's been fifteen years since I last used a csh derivative in anger, and I can't remember the tcsh equivalent of set -x...)