1

In the past when I have compiled applications from source I have extracted the source code to ~/src and compiled from there.

I realize now that there may be no need for me to create the ~/src directory, as Linux probably already has an established location for source code for applications such as this.

Is this the case? What is the directory in Linux that is established as the place for source code from third party applications that I want to compile?

1

There's no pre-determined, or even globally preferred, location. The closest analogue I know of would be the /usr/src tree in Red Hat Enterprise Linux and derivatives, but most applications that you compile are designed to be unrolled into their own directories, compiled as a non-privileged user, and only then installed with root privileges.

  • /usr/src isn't specific to RH, it's traditional and specified in the FHS. – Gilles Sep 20 '13 at 22:54

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.