LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Not how to install where? (https://www.linuxquestions.org/questions/linux-newbie-8/not-how-to-install-where-318683/)

danimal87 04-30-2005 06:32 AM

Not how to install where?
 
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.

Komakino 04-30-2005 07:34 AM

I put all mine in /usr/local/ somewhere.

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.

Maarten_Holland 04-30-2005 09:40 AM

A quick Google returned this page.

Seems a good answer.

reddazz 04-30-2005 10:02 AM

Quote:

Originally posted by Maarten_Holland
A quick Google returned this page.

Seems a good answer.

Very good document. Thanks for the link.

danimal87 05-01-2005 05:52 PM

Thanks for clearing that up and for the quick response.

foo_bar_foo 05-01-2005 06:11 PM

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


All times are GMT -5. The time now is 10:59 AM.