Didn't even occur to me to Google (Compile PHP -- as opposed to Install debian php5.3 or whatever I was searching) but I just did and found a few articles:
http://www.web-tech-india.com/articles/ ... /steps.php
http://ishouldbecoding.com/2008/03/08/c ... -and-linux
http://phpmelb.org/index.php?option=com ... icle&id=69
The last one is of most interest to me as the
./configure is the most verbose. Why?
I realize they are compiler switches and I can easily figure out which each one enables or disables (and take an educated guess with most) and I assume that has something to do with my error I'm currently getting after I run
./configure
Code: Select all
Configuring extensions
checking which regex library to use... php
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation.
Because I don't specify any switches I assume
./configure assumes the default?
EDIT | When I installed
libxml2-dev this solved the configur error and
./configure seems to setup fine. Now I'm nervous to run 'make'.
Also, when I ran:
It seemed to install and yet when I ran
./configure again...it still choked with the same error.
Do I need all those switches? Can't most of those extensions be loaded dynamically in php.ini??? Or are those switches saying compile the sources for each extension in binary form? I assumed it meant they were included into the php binary as a whole...which is probably wrong?
I assume once I get
./configure to succeed and
make there after (if I can figure out that XML lib issue)
make will install PHP binaries and it's files, etc? Does it update the Apache modules too? Does all this get done by hand?
Cheers,
Alex