Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-31-2004, 03:19 PM   #1
Registered: Apr 2004
Distribution: Gentoo
Posts: 76

Rep: Reputation: 15
help - what env var for dynamic lib path?

I was setting up some package. The server would not run because it could not find a dynamic library file I did a "find" and found the file in /usr/local/ssss/lib instead of /lib/ where most dynamic linked libs reside. Is there an environment variable that I can use so that /usr/local/ssss/lib will be included when looking for that library file? Or do I must move that .so file to /lib/??? thanks.
Old 05-31-2004, 03:29 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,681

Rep: Reputation: 218Reputation: 218Reputation: 218
You can use environmental variable LD_LIBRARY_PATH (export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/ssss/lib) or add the diretory to /etc/ and then run ldconfig.
Old 05-31-2004, 03:29 PM   #3
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
The default paths searched by linker for libraries are stored in binary file /etc/ This file is created with 'ldconf' command from /etc/ file which is text one (and easy editable).
Of course you can also just copy the library.
Old 05-31-2004, 04:32 PM   #4
Registered: Apr 2004
Distribution: Gentoo
Posts: 76

Original Poster
Rep: Reputation: 15
thanks guys!! that really helped!!


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
path/env var avail in KDE after logon? hyllplan Debian 5 05-11-2005 08:50 AM
$PATH env Problems Coda Linux - Newbie 8 11-17-2004 07:04 PM
bash shell env var script ejbest Linux - Newbie 4 09-29-2004 11:23 AM
Moving /var/adm and /var/lib - why does it hurt? J_Szucs Linux - General 1 09-15-2004 07:46 PM
tcsh script: how to see if an env var is defined? BrianK Programming 1 06-07-2004 11:12 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:33 PM.

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