LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 10-17-2003, 12:22 AM   #1
syoh
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Rep: Reputation: 0
linking downloaded c library to global search path


i downloaded some c libraries (cncl: vector and matrix arithmetic library)
and i have compiled them to give me *.a binaries...

i want to have all the include folder and lib folder in my global library search path to avoid linking manually each time. (not only me but all users on the system) how do i do this?

i'm using redhat 9 and gnu compiler suite

top of the the cncl directory is located @
/usr/local/cncl

header files are @
/usr/local/cncl/include

binaries files are @
/usr/local/cncl/lib

etc, etc... you get the picture....

please help...

thanks~~
 
Old 10-17-2003, 01:33 AM   #2
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 30
Well, I don't know whether this is correct, but the path of the libraries can be added to the file /etc/ld.so.conf to make them available to every program. Also, after you have added their paths, you have to run 'ldconfig' as root to update your compiler configs.
 
  


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
global search and replace? jkcunningham Linux - General 5 03-15-2006 02:43 PM
How to Chnage Python's module search path (sys.path)? lramos85 Linux - Software 1 05-02-2004 06:10 PM
Possible to search by content of package not downloaded yet? davidas Debian 4 04-09-2004 03:28 AM
linking own library bobby2k3 Programming 2 10-20-2003 10:36 AM
linking library simonissa Linux - Software 2 05-21-2003 09:41 AM


All times are GMT -5. The time now is 09:06 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