Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

up vote 6 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 :) –  Stefan R. Falk Jan 31 '13 at 16:32
3  
Also /usr/local/include/ for the include files. –  Robie Basak Jan 31 '13 at 18:06

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.