Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to set LD_LIBRARY_PATH on Solaris?

Tags:

path

unix

solaris

What is the best place to set up application specific LD_LIBRARY_PATH variable on Solaris? How does

LD_LIBRARY_PATH

variable work?

We currently set it up in .kshrc, but different applications need different versions of messaging framework, but these applications run under the same use and hence they would need different LD_LIBRARY_PATH, so in your opinion what is the best place to set this variable?

Basically I am trying to figure out how to make this variable path part of the application instead of user environment specific.

like image 208
Ville M Avatar asked Mar 02 '09 21:03

Ville M


People also ask

How do I set LD_LIBRARY_PATH?

In your terminal, type the following sudo ldconfig and press enter on your keyboard. Close all your open terminals that you were using then open a new terminal session and run echo $LD_LIBRARY_PATH If you see the path you added is echoed back, you did it right.

Where is LD_LIBRARY_PATH defined?

LD_LIBRARY_PATH is an environmental variable used in Linux/UNIX Systems. It is used to tell dynamic link loaders where to look for shared libraries for specific applications. It is useful until you don't mess with it. It's better to avoid the use of LD_LIBRARY_PATH and use alternatives.

What should be in LD_LIBRARY_PATH?

Set the LD_LIBRARY_PATH to include the directories that contain the JVM libraries in addition to the directories that contain your own libraries.

What is Oracle LD_LIBRARY_PATH?

2 LD_LIBRARY_PATH Environment Variable. Use the LD_LIBRARY_PATH environment variable to specify directory paths that the linker should search for libraries specified with the -l library option. Multiple directories can be specified, separated by a colon.


1 Answers

Usually I would just have a shell script that starts the application. In the shell script I would set LD_LIBRARY_PATH to whatever I need it to be for that app, then have the script start that app. Doing it that way should cause the path to be set only for that application.

like image 187
Eric Petroelje Avatar answered Sep 24 '22 21:09

Eric Petroelje