LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-18-2011, 04:14 PM   #1
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Rep: Reputation: 78
Is there a standard location for downloading source code?


I'm about to recompile PHP from source and was planning to download the source code to my Ubuntu machine. Is there a standard place where all the source code goes? I know that PHP has many dependencies and would like to hopefully put it in the right place so as to satisfy as many as possible.
 
Old 02-18-2011, 04:28 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Well, /usr/src seems to be the historically accepted location, but many people also do /home/src.

Though it really doesn't matter at all (beyond, perhaps, permissions issues with building in /usr), and certainly has no effect on dependencies.
 
Old 02-18-2011, 05:59 PM   #3
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Original Poster
Rep: Reputation: 78
Thanks for the info. I was imagining that all the apt-get install I do would result in source being stored in some consistent location, but I've looked around for source code and it seems like apt-get install cleans up after itself pretty tidily.

I think I'll use /usr/src and try to be consistent. Hopefully that will make dependency hell a bit less hellish.
 
Old 02-18-2011, 06:05 PM   #4
jcalzare
Member
 
Registered: Aug 2009
Location: Chicago
Distribution: CentOS
Posts: 114

Rep: Reputation: 34
I also use /usr/src, this is pretty standard. If you are having dependency problems, look to apt-get install a development version of the package related to the software in question. If your make fails with missing python.h, go install python-dev with apt-get, and it will probably sort you out.
 
Old 02-18-2011, 06:15 PM   #5
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Original Poster
Rep: Reputation: 78
Quote:
Originally Posted by jcalzare View Post
I also use /usr/src, this is pretty standard. If you are having dependency problems, look to apt-get install a development version of the package related to the software in question. If your make fails with missing python.h, go install python-dev with apt-get, and it will probably sort you out.
I'm definitely familiar with "apt-get install". I'm trying to get my system configured so I can continue working on the PECL extension AMFEXT so apt-get doesn't help me in this case. I'll be compiling from source.
 
Old 02-18-2011, 06:19 PM   #6
jcalzare
Member
 
Registered: Aug 2009
Location: Chicago
Distribution: CentOS
Posts: 114

Rep: Reputation: 34
Yes, I understand that. I was referring to resolving dependency issues where you get errors during your compile like:

could not find libwhatever.so
something.h not installed
 
Old 02-18-2011, 06:24 PM   #7
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Original Poster
Rep: Reputation: 78
Quote:
Originally Posted by jcalzare View Post
Yes, I understand that. I was referring to resolving dependency issues where you get errors during your compile like:

could not find libwhatever.so
something.h not installed
ahhhhh....i gotcha. Like if PHP compile complains about "can't find mcrypt" or something, i try apt-get install mcrypt or something. Thanks for the hint.
 
  


Reply



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
[SOLVED] Standard location for defining Environment Variables csteelm Slackware 1 01-04-2011 11:23 AM
Location of standard interface flags on SUSE hoorah928 Linux - Networking 1 07-08-2010 06:15 PM
what is the file location of Redhat source code?? nazib Linux - General 1 02-26-2005 03:18 AM
Location of standard icons in Mandrake 10 Meriadoc Linux - Newbie 4 06-24-2004 03:06 AM
Location of kernel source code mhl Mandriva 2 11-30-2003 05:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:23 AM.

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