Hi guys.
I compiled a PHP module named sapnwrfc, and this module needs the environment variable LD_LIBRARY_PATH to be set to:
Code:
LD_LIBRARY_PATH=/usr/sap/nwrfcsdk/lib/
So I tried editing the .bashrc file in my home directory adding the following at the end (then loging out and loging in):
Code:
LD_LIBRARY_PATH=/usr/sap/nwrfcsdk/lib/
export LD_LIBRARY_PATH
When I type "env" in a bash shell, the variable is set. But whenever I try running my PHP script from Firefox, I get a missing files error message in Apache's error.log, ending with:
Code:
LD_LIBRARY_PATH is currently set to <not set>
My guess is that I should not set the variable in .bashrc, but somewhere else. I just don't know where.
Thanks a lot for your help, as always.
Bookmarks