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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
11-12-2009, 11:20 PM
|
#1
|
LQ Newbie
Registered: Oct 2009
Posts: 16
Rep:
|
Newbie question about recompiling PHP from source
I upgraded PHP on my server recently and had to recompile it several times because I kept forgetting to include some packages.
I always keep my source files in /src/[package-name] and so far, I have run "make clean" before running "./configure" every time. Is this necessary?
Also, let's say in a month, I want to add just one package and don't want to load it dynamically. What's the best way to do it? Can I just do a "./configure" using the same options I used before plus the new one, and then "make && make install" over the installed version?
|
|
|
11-12-2009, 11:26 PM
|
#2
|
Senior Member
Registered: May 2008
Distribution: Slackware
Posts: 1,052
Rep:
|
I like how you save the source for all ur programs to /src. I'm gonna start doing that.
|
|
|
11-12-2009, 11:48 PM
|
#3
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Quote:
Originally Posted by trist007
I like how you save the source for all ur programs to /src. I'm gonna start doing that.
|
That is what /usr/local/src is for.
Evo2.
|
|
|
11-12-2009, 11:51 PM
|
#4
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Quote:
Originally Posted by TheYanster
I upgraded PHP on my server recently and had to recompile it several times because I kept forgetting to include some packages.
I always keep my source files in /src/[package-name] and so far, I have run "make clean" before running "./configure" every time. Is this necessary?
|
It depends on how well the build system is set up. I usually assume the worst and do a make clean. However for some software, even that is not enough and it's safest to start with a pristine tarball.
Quote:
Also, let's say in a month, I want to add just one package and don't want to load it dynamically. What's the best way to do it? Can I just do a "./configure" using the same options I used before plus the new one, and then "make && make install" over the installed version?
|
Again depends on how good the build system is. Try and see!
Evo2.
|
|
|
11-12-2009, 11:52 PM
|
#5
|
Senior Member
Registered: May 2008
Distribution: Slackware
Posts: 1,052
Rep:
|
What's a good place to put all the READMEs, INSTALL notes and documentation?
|
|
|
11-13-2009, 12:01 AM
|
#6
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Quote:
Originally Posted by trist007
What's a good place to put all the READMEs, INSTALL notes and documentation?
|
I have a directory called ~/doc/mydoc/ which is full of notes that I've made over the years.
For sofware I usually make a directory in /usr/local/src for each software package, and then a separate subdirectory for each version. You could put all your notes that are specific to the installation of that piece of software in there too.
Anyway, shouldn't hijack this thread.
Cheers,
Evo2.
|
|
|
11-13-2009, 12:11 AM
|
#7
|
LQ Newbie
Registered: Oct 2009
Posts: 16
Original Poster
Rep:
|
I have moved my sources to /usr/local/src as suggested. I didn't know about that directory.
Thanks for all the info, it's been really helpful!
One more question: I've noticed that config.log sometimes didn't log the configure options you used for your compile. Is this normal or should I always echo the config options to a file somewhere as a best practice?
|
|
|
All times are GMT -5. The time now is 09:58 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|