LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 09-09-2010, 03:35 PM   #1
theKbStockpiler
Member
 
Registered: Sep 2009
Location: Central New York
Distribution: RPM Distros,Mostly Mandrake Forks;Drake Tools/Utilities all the way!GO MAGEIA!!!
Posts: 986

Rep: Reputation: 53
ld , adding libraries and the search path info Requested


I wanted to install Filemon in Mandriva and I have to install libraries and configue ld to look for them. I could not find a whole lot of info with the search terms that I currently am aware of. If you know the overview of these concepts I would like to be informed of it. If you are aware of any tutorials on it that would be great. The actual steps to install Filemon is not requested. Im knowledgeable of libraries but not how to add them or the best place to put them. I have no idea of how to configure ld.

Another option I had was adding a Linux kernel Module. Any info on this would also be appreciated.

I accidentally posted this in the wrong thread so "LQ Moderator go a head and move it Please"?

Thanks / Reputation(whatever) in advance

Last edited by theKbStockpiler; 09-09-2010 at 03:58 PM. Reason: posted in wrong thread
 
Old 09-09-2010, 06:35 PM   #2
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
specify the path in /etc/ld.so.conf. Then run ldconfig.

man ldconfig for more info.
 
Old 09-09-2010, 06:56 PM   #3
ShadowCat8
Member
 
Registered: Nov 2004
Location: San Bernardino, CA
Distribution: Gentoo, Arch, (RedHat4.x-9.x, FedoraCore 1.x-4.x, Debian Potato-Sarge, LFS 6.0, etc.)
Posts: 261

Rep: Reputation: 52
Well, as far as making sure that the library gets loaded, /etc/ld.so.conf is the file you need to make sure has an entry to your library's directory (e.g. if your library is /usr/local/lib/abc_123.so.2, then you need to make sure that one line in /etc/ld.so.conf is /usr/local/lib) and then run ldconfig. Within the Mandriva Wiki, the page that discusses how to install from source code has a section on making sure that the libraries get loaded.

As far as adding a kernel module, well, if you have a pre-compiled one that you know will run with your kernel, you can copy it into one of the directories that is listed in /etc/ld.so.conf. I'd recommend still using /usr/local/lib to cut down the possibility of 'clobbering'/overwriting an existing library that might have the same name.

If you are talking about building a kernel module, well, I think that might be more work than you would care to do for something as simple as this.

HTH. Let us know.
 
  


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
Daemons and the Kernel: Info requested theKbStockpiler Linux - General 6 05-04-2010 11:52 PM
Info on Pointers and Variables Requested theKbStockpiler Programming 7 05-03-2010 07:38 PM
Parameter passing: Parameters in General Info requested theKbStockpiler Programming 9 04-27-2010 08:52 PM
adding to search path sefzik Linux - Software 2 01-28-2005 02:26 PM
How to Chnage Python's module search path (sys.path)? lramos85 Linux - Software 1 05-02-2004 06:10 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 05:00 AM.

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