21

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.

0

1 Answer 1

23

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

3
  • 1
    Thank you very much! This was that kind of answer I needed :) Jan 31, 2013 at 16:32
  • 8
    Also /usr/local/include/ for the include files. Jan 31, 2013 at 18:06
  • once you moved it there how fdo you make sure the whole system knows it's there? do you have to edit /etc/environement or something?
    – tatsu
    May 23, 2019 at 12:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .