Changing LD_LIBRARY_PATH in root session

Dear all,

I am playing around with the CMS software and PROOF. For this, I would like to setup the necessary environment from within the ROOT session( via SETUP.C).
However, somehow I fail to set the LD_LIBRARY_PATH.
I tried:
root [0] gSystem->Setenv(“LD_LIBRARY_PATH”,"/rdata2/…");
root [1] gSystem->SetDynamicPath(".:/afs/desy.de/…");
root [2] gSystem->Load(“libFWCoreFWLite”);
dlopen error: libboost_regex-gcc-mt-1_33_1.so.1.33.1: cannot open shared object file: No such file or directory
Load Error: Failed to load Dynamic link library /afs/desy.de/group/cms/sw/slc3_ia32_gcc323/cms/cmssw/CMSSW_1_3_1/lib/slc3_ia32_gcc323/libFWCoreFWLite.so
*** Interpreter error recovered ***

Running “.! ldd …” on the libFWCoreFWLite from within root shows no unknown libraries, so the dlopen call seems not to use the current LD_LIBRARY_PATH.

The whole operation works if I set the LD_LIBRARY_PATH before starting ROOT.
Is there anything else I have to set besides this env variable and DynamicPath?

Thanks a lot in advance,
Hartmut.