LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-28-2012, 09:00 AM   #1
charging-ibis
Member
 
Registered: Dec 2011
Location: Columbus, OH
Distribution: Slackware 13.37
Posts: 37

Rep: Reputation: 0
Slackware 13.37 no $LD_LIBRARY_PATH for shared libraries. Where is it?


I am currently studying for my Linux+ exam and I was told that slackware is one of the best distros. to use for effectively learning Linux. Now my question is this, why isn't there a environment variable for '$LD_LIBRARY_PATH' for shared libraries? I understand if it isn't broke, don't fix it.... well slackware is interesting to me still. It's just a little off from what the text book is telling me. But could I get some insight on why there isn't a '$LD_LIBRARY_PATH' variable that I think should be there by default? Also What would be the best and effecient way to create a '$LD_LIBRARY_PATH' variable?

- Thanks
 
Old 11-28-2012, 09:10 AM   #2
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,169

Rep: Reputation: 1013Reputation: 1013Reputation: 1013Reputation: 1013Reputation: 1013Reputation: 1013Reputation: 1013Reputation: 1013
AFAIK LD_LIBRARY_PATH is not used in Slackware.

When a library in a non-standard location (or not) is added, I just add its path to /etc/ld.so.conf if need be and run as root ldconfig.

Not sure if it is the recommended or 'canonical' way but that works.

To know more: 'man ldconfig'.
 
2 members found this post helpful.
Old 11-28-2012, 12:02 PM   #3
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,752

Rep: Reputation: 462Reputation: 462Reputation: 462Reputation: 462Reputation: 462
LD_LIBRARY_PATH should not be set by default. It is meant to be used as a run-time override to point the linker at libs in nin-standard locations. For instance, it can be used in a wrapper script which sets LD_LIBRARY_PATH before running a program so that the program finds a special version of the lib under LD_LIBRARY_PATH.
 
2 members found this post helpful.
Old 11-28-2012, 12:14 PM   #4
charging-ibis
Member
 
Registered: Dec 2011
Location: Columbus, OH
Distribution: Slackware 13.37
Posts: 37

Original Poster
Rep: Reputation: 0
Hey thanks for the information. Both Didier Spaier & gnashley.
 
Old 11-28-2012, 02:23 PM   #5
saulgoode
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 231

Rep: Reputation: 98
Detailed information about the role LD_LIBRARY_PATH plays in linking can be found by viewing the man page for 'ld-linux'.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware 13.37 x86 - error while loading shared libraries: libzfXComm.so.1 PrinceCruise Linux - Software 6 06-04-2012 07:42 AM
Urgent !!! rpm: error while loading shared libraries: libelf.so.1: cannot open shared tinaa Linux - Software 5 12-02-2008 03:19 PM
Does LD_LIBRARY_PATH variable loads all shared libraries in the directory to ram babu198649 Linux - Newbie 5 06-27-2008 08:24 AM
error while loading shared libraries: libgvc.so.3: cannot open shared object file coolrock Slackware 6 01-17-2007 05:10 PM
error while loading shared libraries: libdb-4.1.so: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 07:03 AM


All times are GMT -5. The time now is 12:44 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration