Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to install a library manually, well actually just put it in a sensible location preferably in my lib path.

I have a lib[...].a file and a bunch of headers pertaining to that static library file. If I look under /usr/lib/ I see only .so files, likewise for /lib/, /lib32/ etc. I figure I could chuck it in there, but is there any place where it can get cozy with other .a files or is that as good place as any? I'm not an library expert, but I'm pretty sure it won't matter functionally, but I'd like to learn conventional best practice. Also, where is the standard place to put the headers?

share|improve this question

2 Answers 2

up vote 5 down vote accepted

Static libraries belong next to their corresponding dynamic libraries, and in accordance with the FHS. Keep in mind that static libraries are usually only needed to build software, not run it.

share|improve this answer

Incidentally: don't put anything you install manually in /usr/lib or /lib, where the package management system installs things; put it in /usr/local, that's what it is for.

share|improve this answer
    
Thanks. Actually did install it in /usr/lib, so thanks! –  Max Jan 17 '11 at 12:59
1  
But wait, my answer is just a side remark, Ignacio gave the answer to your actual question, so you should accept his! –  reinierpost Jan 18 '11 at 19:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.