How to Recompile PHP (from source) No Downtime
-
So I tried this tut and it seems that it is not working with the latest stable version of PHP (5.3.6)
I downloaded and unzipped to /usr/local/src/ moved to the php-5.3.6 directory as directed in the tut.
Then I attempted to 'make clean'
make: *** No rule to make target `clean'. Stop.Then I attempted just 'make' no clean
make: *** No targets specified and no makefile found. Stop.So I fished around the documents that were in the zip and looked around php.net and all around the web.
All I found and I don't think I'm understanding this right - Could it be that php is using a new method other than 'make' or a derivative of 'make'?
I am referring to README.UNIX-BUILD-SYSTEM file found in the root folder of php-5.3.6 -
I found this text at the top of the file but can't make sense of it since I don't have the 'make' command experience to understand it.
Maybe someone here can shed some light.. the text reads
PHP Build System V5 Overview
- supports Makefile.ins during transition phase
- not-really-portable Makefile includes have been eliminated
- supports separate build directories without VPATH by using
explicit rules only
- does not waste disk-space/CPU-time for building temporary libraries
=> especially noticeable on slower systems
- slow recursive make replaced with one global Makefile
- eases integration of proper dependencies
- adds PHP_DEFINE(what[, value]) which creates a single include-file
per what. This will allow more fine-grained dependencies.
- abandoning the "one library per directory" concept
- improved integration of the CLI
- several new targets
build-modules: builds and copies dynamic modules into modules/
install-cli: installs the CLI only, so that the install-sapi
target does only what its name says
- finally abandoned automake (still requires aclocal at this time)
- changed some configure-time constructs to run at buildconf-time
- upgraded shtool to 1.5.4
- removed $(moduledir) (use EXTENSION_DIR)The Reason For a New System
It became more and more apparent that there is a severe need
for addressing the portability concerns and improving the chance
that your build is correct (how often have you been told to
"make clean"? When this is done, you won't need to anymore).Seems to me we need a make file to fit the vpsBible. I think that's what all this means. Any make file gurus out there??
Posted 9 months ago # -
Hi Joe,
Certainly there could be some incompatibility with a PHP rebuild to the latest version. Bear with me, I'm due to upgrade a client system later in the week and will report my findings, updating that tutorial accordingly.
Posted 9 months ago # -
Excellent. Thank you.
Posted 9 months ago # -
anything new on this topic? Thanks.
Posted 8 months ago #
Reply
You must log in to post.
Want HTML?
a blockquote code em strong ul ol liPlace code between backticks `codeHere`
You've got it.
