LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-30-2005, 07:32 AM   #1
danimal87
LQ Newbie
 
Registered: Feb 2005
Distribution: Fedora Core 3
Posts: 18

Rep: Reputation: 0
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.
 
Old 04-30-2005, 08:34 AM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
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.
 
Old 04-30-2005, 10:40 AM   #3
Maarten_Holland
Member
 
Registered: Sep 2003
Location: Holland
Distribution: SuSE 9.2
Posts: 39

Rep: Reputation: 15
A quick Google returned this page.

Seems a good answer.
 
Old 04-30-2005, 11:02 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Quote:
Originally posted by Maarten_Holland
A quick Google returned this page.

Seems a good answer.
Very good document. Thanks for the link.
 
Old 05-01-2005, 06:52 PM   #5
danimal87
LQ Newbie
 
Registered: Feb 2005
Distribution: Fedora Core 3
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks for clearing that up and for the quick response.

Last edited by danimal87; 05-01-2005 at 07:04 PM.
 
Old 05-01-2005, 07:11 PM   #6
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fc3 install doesnt install grub properly onto sata drive sabo Linux - Newbie 4 02-03-2007 05:04 PM
make install does not install daemons (clamd snortd). Is this a feature of tarball? Emmanuel_uk Linux - Newbie 3 11-15-2005 02:29 AM
Error: Unable to boot /install/2.6/linux when starting Etch Install BuckRogers01 Debian 4 08-06-2005 07:40 PM
How do I re-install an operatingsystem? Corrupted install. Yast wont load. URGENT.thx CrewXp SUSE / openSUSE 5 05-09-2005 01:07 AM
knoppix liveCD install works great, HD install not so good stephanie_k Linux - Newbie 3 05-10-2004 10:41 AM


All times are GMT -5. The time now is 09:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration