Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 10-17-2003, 12:22 AM   #1
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 @

header files are @

binaries files are @

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

please help...

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

Rep: Reputation: 31
Well, I don't know whether this is correct, but the path of the libraries can be added to the file /etc/ 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.


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 > Forums > Non-*NIX Forums > Programming

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

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