<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 31.03.2016 17:16, John Landmesser
wrote:<br>
</div>
<blockquote cite="mid:56FD3F4E.2030901@gmx.de" type="cite">Hi, <br>
<br>
i developed an application ( Linux ) that need to know where
$ORACLE_HOME points to. <br>
<br>
The only way was to start my app with a shell-script, defining: <br>
<br>
#! /bin/bash <br>
export ORACLE_HOME=/usr/lib/oracle/.... <br>
<br>
# run my app <br>
Lazarus_Oracle_app <br>
<br>
Had no success defining this variable in bashrc or profile. <br>
<br>
But why do i have to define this in my start-script? <br>
<br>
Annotation: <br>
perhaps i have to search the sources of ZeosLib, that i'm using
because of german Umlauts-problems in OracleConnection <br>
<br>
Thanks for tipps!! <br>
<br>
-- <br>
_______________________________________________ <br>
Lazarus mailing list <br>
<a class="moz-txt-link-abbreviated"
href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<br>
<a class="moz-txt-link-freetext"
href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
<br>
</blockquote>
<br>
<br>
i think i found the explanation:<br>
<br>
oracle tells me:<br>
<br>
<blockquote type="cite">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<span style="margin: 0px; padding: 0px; list-style: none;
-webkit-font-smoothing: antialiased; color: rgb(0, 0, 0);
font-family: arial, helvetica, sans-serif; font-size: 12px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255);"><span style="margin: 0px; padding: 0px; list-style: none;
-webkit-font-smoothing: antialiased;">
<p style="margin: 0px 0px 1em; padding: 0px; list-style: none;
-webkit-font-smoothing: antialiased; line-height: 1.5em;
font-size: 12px;">3. Set the environment variable
LD_LIBRARY_PATH to the appropriate directory for the Instant
Client version, for example:</p>
<pre style="margin: 0px; padding: 0px; list-style: none; -webkit-font-smoothing: antialiased;">export LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib:$LD_LIBRARY_PATH
</pre>
</span></span><span style="margin: 0px; padding: 0px;
list-style: none; -webkit-font-smoothing: antialiased; color:
rgb(0, 0, 0); font-family: arial, helvetica, sans-serif;
font-size: 12px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; line-height: 18px;
background-color: rgb(255, 255, 255);"><br
class="Apple-interchange-newline">
</span></blockquote>
<br>
so $ORACLE_HOME is not needed but on modern Linux <span
style="margin: 0px; padding: 0px; list-style: none;
-webkit-font-smoothing: antialiased; color: rgb(0, 0, 0);
font-family: arial, helvetica, sans-serif; font-size: 12px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255);"><span style="margin: 0px; padding: 0px; list-style: none;
-webkit-font-smoothing: antialiased;">
<pre style="margin: 0px; padding: 0px; list-style: none; -webkit-font-smoothing: antialiased;">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.
Debian Sid.
Uh thats all really tricky and i'm no geek :-))
<span style="margin: 0px; padding: 0px; list-style: none;
-webkit-font-smoothing: antialiased; color: rgb(0, 0, 0);
font-family: arial, helvetica, sans-serif; font-size: 12px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255);"><span style="margin: 0px; padding: 0px; list-style: none;
-webkit-font-smoothing: antialiased;"><pre style="margin: 0px; padding: 0px; list-style: none; -webkit-font-smoothing: antialiased;">
<span style="margin: 0px; padding: 0px; list-style: none;
-webkit-font-smoothing: antialiased; color: rgb(0, 0, 0);
font-family: arial, helvetica, sans-serif; font-size: 12px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255);"><span style="margin: 0px; padding: 0px; list-style: none;
-webkit-font-smoothing: antialiased;"></span></span></pre></span></span></pre>
</span></span><br>
<br>
</body>
</html>