LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 09: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, 09:46 AM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
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, 08: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


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


All times are GMT -5. The time now is 03:52 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration