[SOLVED] Is there a standard location for downloading source code?
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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 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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.