LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-24-2007, 08:39 AM   #1
serg.kr
LQ Newbie
 
Registered: Jul 2007
Distribution: Debian
Posts: 15

Rep: Reputation: 2
Installing from source


Hello,

I am planning on installing Apache (from source) on my Xubuntu desktop. However, I'm not very sure what is the best place to put it. I am aware that /usr/local/src is the usual directory for programs installed from source. However, root privileges are disabled there. Of course, I could become root and do what I need to do, but it seems that if root privileges are disabled there, they are disabled there for a good reason. So what is the right approach here?

1. Install the software to another location (perhaps somewhere under /home/myname).
2. Become root and install it under /usr/local/src.
3. Become root and allow write permissions to /usr/local/src for all users. Then install it as a regular user.

Since this is a home computer, permissions aren't really a huge deal. However, I'm trying to learn best practice as early as possible.

On another note: when I actually go to install Apache, where should I set the destination directory? (When I run ./configure, I get to specify the --prefix=/output/directory option which tells Apache where it should install itself.) Is the usual place for this /usr/local? Or should I place it in /, the root directory?

Thank you in advance for any help.
 
Old 07-24-2007, 08:46 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Where you put the source code doesn't matter at all. You could keep it under /home, or put it on a USB flash drive if you wanted.

What matters is where the compiled program actually installs to. The installation prefix should be either /usr or /usr/local, depending on how you like to do things. System software like Apache would generally not be installed under a user's home directory. For the most part, on a single user system, everything should be placed under /usr, as there is no reason to cordon off software based on user.
 
Old 07-24-2007, 07:09 PM   #3
serg.kr
LQ Newbie
 
Registered: Jul 2007
Distribution: Debian
Posts: 15

Original Poster
Rep: Reputation: 2
OK, thanks for the help. I decided to go along with what I think is the standard: source code in /usr/local/src and the compiled software in /usr/local/programname. After doing some additional searching on the difference between /usr and /usr/local, it seems that /usr/local is more appropriate for programs that I install myself [1][2].
 
  


Reply

Tags
installation, sourcecode



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
Installing php package after installing from source shubb Slackware 4 03-14-2006 10:19 AM
Installing from source, installing from CVS and the E-17 window manager... Buffbannana049 Ubuntu 10 02-14-2006 11:27 PM
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 05:42 PM
Installing source Abe_the_Man Slackware 2 10-12-2003 11:17 PM
Installing from source? cclavey Linux - Software 6 03-29-2003 10:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:35 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
Open Source Consulting | Domain Registration