LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   don't want to use LD_LIBRARY_PATH repeatedly (https://www.linuxquestions.org/questions/programming-9/dont-want-to-use-ld_library_path-repeatedly-434405/)

lucky6969b 04-12-2006 05:01 AM

don't want to use LD_LIBRARY_PATH repeatedly
 
Currently relying on export LD_LIBRARY_PATH
don't want to do that everytime I start a session
Any way that I can fix that at system startup
also how do I set this variable in KDevelop
Any help would be greatly appreciated!
Thanks
Jack

Alien_Hominid 04-12-2006 06:12 AM

Add "export LD_LIBRARY_PATH=something" (without quotes) into /etc/profile.

paulsm4 04-12-2006 11:34 AM

Hi -

Please look at this thread:
http://www.linuxquestions.org/questi...d.php?t=408083

or this link:
http://www.tldp.org/HOWTO/Program-Li...libraries.html

In particular (if the "session" you're referring happens to be KDevelop itself):
Quote:

Put the path into /etc/ld.so.conf and after this run ldconfig.
Otherwise, if the problem is with an executable you're developing, then you might wish to try:
Quote:

-Wl,-rpath,$(DEFAULT_LIB_INSTALL_PATH)
Cheers!


All times are GMT -5. The time now is 01:28 PM.