Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello.
For Installing program from source "/usr/local" is good or "/usr/local/src" ?
Thank you.
Not enough information. Is this a snapshot you're getting off CVS or GIT? For that, I usually make a directory to receive the download. Once it's compiled and whipped into shape, then just run "make distcheck" on it and store the tar file (where ever you find that convenient).
Self written apps go into /usr/local for debug versions and testing. Once satisfied, I'll recompile, use the optimization flags, and drop it in /usr. That way, I know where the production runs are, and where the debug versions are.
For example, You want to install pidgin from source code. The better place is ".../src/" or ".../local" ?
nether but maybe /usr/local
BUT
it REALLY depends on your operating system and HOW !!! YOU !!! set it up
i build a LOT of programs but i keep them OUT!!!! of the default OS directory tree
i use a second tree for all the programs i build
( this way if i FUBAR the OS i can reinstall the os EASILY )
so is set my build path to "/DATA/SUSE "
Code:
./configure --prefix=/DATA/SUSE
this then causes "make install" to install it to
/DATA/SUSE/bin
/DATA/SUSE/lib64
/DATA/SUSE/include
/DATA/SUSE/share
some people like where Libreoffice installs
/opt/LibreOffice
some LIKE to use the "local"
this dates back to server / terminal of the 70's ,80's and early 90's
where the local directory WAS on your desk and "/" was on a server someplace
use what you want
but you might WANT to stay consistent and use that ALL the time
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802
Rep:
If you want to be technical about it,... If you are installing programs manually, you should probably be installing them to /opt ... The /opt directory is supposed to be the place where software that is not part of the OS's standard installation is supposed to be done...
Then again,... nobody keeps to standards anymore (or never really did, for that matter)...
/usr/src
Source files for different parts of the system, included with some packages for reference purposes. Don't work here with your own projects, as files below
That same man page has all the relevant information you have been asking for.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.