" /> LD_LIBRARY_PATH already set in Security Pack install (Unix) - Genesys CTI User Forum

Author Topic: LD_LIBRARY_PATH already set in Security Pack install (Unix)  (Read 1292 times)

Offline PFCCWA

  • Hero Member
  • *****
  • Posts: 655
  • Karma: -7
LD_LIBRARY_PATH already set in Security Pack install (Unix)
« on: September 12, 2020, 08:06:53 AM »
Advertisement
hello
i have been installing the Genesys security path and noticed that the ld_library_path in our unix host is already set.
Looking at the value, it is currently set to= $ORACLE_HOME.
The $ORACLE_HOME is set to $ORACLE_BASE/product/instantclient_11_2.

From what i reading this is usually set for DB Servers (we are still on v8.1).
In the host at the moment we only have LCA/T-Servers/URS/StatServer, LDS and IVR Servers.  I think it may have been set for one or more of these.
Either way can i still set the environment variable for the security path in some way to what it needs to be (path to security path).

thanks.
« Last Edit: September 12, 2020, 08:14:53 AM by PFCCWA »

Offline jamesmurphyau

  • Full Member
  • ***
  • Posts: 123
  • Karma: 2
Re: LD_LIBRARY_PATH already set in Security Pack install (Unix)
« Reply #1 on: September 12, 2020, 10:56:12 AM »
When you say "it's already set', where is it set? In ~/.bash_profile? Which user is it set for?

I never like setting environment variables in ~/.bash_profile, because those variables only get picked up when that user is "logged in".. What if you (with your user, which is different to the one that runs all the Genesys apps) wants to test an application? What if someone logs in as root and wants to test things? Then it breaks and no now knows why.. Or maybe someone only added the environment variables for the root user and you find you have to always start a particular app on a particular server as root for it to work..

Anyway, to answer your question:

LD_LIBRARY_PATH is a colon separated variable populated with one or more paths. If only one, there is no colon. If more than one, there is a colon between each. So this would work:

[code]export LD_LIBRARY_PATH="$ORACLE_HOME:/opt/GCTI/security-pack/security-pack-8510018b1[/code]

Another way to do it, and the way I do it, is create a file inside /etc/ld.so.conf.d called "genesys-security-pack-8510018b1.conf", which has a single line in it:

[code]/opt/GCTI/security-pack/security-pack-8510018b1[/code]

After doing this, you can restart the server, or you can run ldconfig to refresh the cache

Doing it this way means every user and every app always get the path /opt/GCTI/security-pack/security-pack-8510018b1 in their library search (which is what you're doing by setting LD_LIBRARY_PATH in ~/.bash_profile, except it's only going to apply for a single user and not all the time)