Are there dedicated folders for user made sources and libraries/modules?

This is a very basic question, yet I can't find anything relevant. Is there a standard directory where to put the sources of your projects and the location of the libraries/modules they use (which are made for the project and are non standard) ?

1

1 Answer

Normally, you put the sources wherever you want.

If you plan to distribute your project via binary packages or repository, you should think in integrating it with the normal filesystem structure (i.e. binaries in /usr/bin, libraries in /usr/lib, data files in /usr/share...).

If the users are supposed to compile themselves the program, it (was?) an honored Unix tradition to install the project under /usr/local (/usr/local/bin, /usr/local/lib, /usr/local/share)...

There are some "standards' which are more or less followed: the Filesystem Hierarchy Standard (FHS), or somewhere in the Freedesktop pages (e.g XDG Base Directory Specification).

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like