Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 want to install SFML (a free multimedia C++ API) on my Ubuntu system, which basically isn't a problem. But I wanted to know where I should store the files.

I can see, that Ubuntu stores my C++ Standard libraries in /usr/include/c++ and so on.. My problem is, that I don't know where I am supposed to leave the libraries or is there no place which should be used for this and I can move the files wherever I want?

All I am looking for is just some kind of a way "how to do it right" but I can't find an answer. I want my libraries to stay organized.

share|improve this question
up vote 7 down vote accepted

/usr/local/lib/ should be the right folder for this. It is the normal place for keeping shared library files installed manually from source code (as defined by FHS).

If you build a library by running ./configure, make, and sudo make install, it will usually install there automatically.

share|improve this answer
Thank you very much! This was that kind of answer I needed :) – displayname Jan 31 '13 at 16:32
Also /usr/local/include/ for the include files. – Robie Basak Jan 31 '13 at 18:06

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.