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?

Thanks!

link|improve this question
feedback

2 Answers

up vote 0 down vote accepted

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.

link|improve this answer
Thanks. Actually did install it in /usr/lib, so thanks! – Max Jan 17 '11 at 12:59
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
feedback

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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