Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
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


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.