[Lazarus] System variables visibility
jmlandmesser at gmx.de
Thu Mar 31 19:17:34 CEST 2016
On 31.03.2016 17:16, John Landmesser wrote:
> i developed an application ( Linux ) that need to know where
> $ORACLE_HOME points to.
> The only way was to start my app with a shell-script, defining:
> #! /bin/bash
> export ORACLE_HOME=/usr/lib/oracle/....
> # run my app
> Had no success defining this variable in bashrc or profile.
> But why do i have to define this in my start-script?
> perhaps i have to search the sources of ZeosLib, that i'm using
> because of german Umlauts-problems in OracleConnection
> Thanks for tipps!!
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
i think i found the explanation:
oracle tells me:
> 3. Set the environment variable LD_LIBRARY_PATH to the appropriate
> directory for the Instant Client version, for example:
> export LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib:$LD_LIBRARY_PATH
so $ORACLE_HOME is not needed but on modern Linux
LD_LIBRARY_PATH is ALLWAYS empty, even if its declared in bashrc or profile
I didn't tell you that i defined LD_LIBRARY_PATH in my script and LD_LIBRARY_PATH is blanked as i remember and testet just now.
Uh thats all really tricky and i'm no geek :-))
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Lazarus