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.
My situation is this, I have been using linux for a few months now and I am comfortoble doing the basic stuff. I have read the tutorial on compiling programs on this site but one question that I havn't found an ansewr to is "where is the proper place to install programs"?
a few examples: VIM, aterm, Frozen-Bubble. As far as I know all these reside in the /src directory as per the tutorials instruction. Any clarification would be much apreciated!
p.s if you could give examples of where you would place these that would help.
You (usually) do:
./configure (if a configure script exists)
make (to compile the app)
su (to become root)
make install (to install system wide where any user can get it)
by default most programs put their executable in /usr/local/bin and just about everything else in /usr/local/share/<programname>
if you pass --prefix=/usr (or --prefix=/opt etc...) to ./configure then it will install into /usr/bin and /usr/share/<programname> or /opt/bin /opt/share/<programname> instead.
You can delete the source directory once you've installed the software.
if it helps at all -- it really doesn't matter where you put stuff accept for instance KDE programs need to be in --prefix=`kde-config --prefix`
and gnome2 programs need to be in --prefix=`pkg-config --variable=prefix ORBit-2.0`
gnome1 programs go in --prefix=`pkg-config --variable=prefix ORBit`
so they can "find themselves"
other than that just ./configure defaults to /usr/local so as not to overwrite system files in /usr
this is mainly so developers can tinker with new versions of things while using the old version to do real stuff
generally actual installs of core stuff goes in --prefix=/usr
there is one more twist to this as some people keep some things in /usr/local so they are safe from system upgrades to /usr
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.