LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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: 38

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
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
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,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
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.
 
3 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: 38

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: 288

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:32 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration