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/…");
root [2] gSystem->Load(“libFWCoreFWLite”);
dlopen error: cannot open shared object file: No such file or directory
Load Error: Failed to load Dynamic link library /afs/
*** 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,