I have built and deployed PHP-7.x beginning from PHP-7.1 through PHP-7.4.2, including some 7.3 updates, on Slackware 14.2 (both 32 and 64 bit), although I have not kept separate build notes for 7.3.x and 7.4.x.
I began with the
Slackbuild Patrick posted to your previous thread, modified options to suit my uses, installed a few required packages as needed to resolve build errors, and have had no problems.
In upgrading since the 7.1 build I have had to build and install the following, but not sure which was for a specific PHP version:
alpine (Not sure where I got Slackbuild, try -current)
libsodium (get it from SBo)
oniguruma (SBo)
pcre2 (Built using Slackbuild from -current)
libedit (From -current)
So, to summarize:
1. Get Slackbuild from the link provided by Patrick included above
2. Install above dependencies, possibly others, as indicated by build errors and READMEs
Hope this is enough to get you started, ask here if you encounter anything you cannot resolve!
And perhaps others with more specific knowledge of the requirements will chime in here too.
Good luck!
(Updated to correct original Slackbuild source)
ADDITIONAL COMMENTS: Sorry for posting this piecemeal, that kind of day...
I got around to my build system and looked into how I have actually been doing this instead of reliance on snapshots from memory...
At 7.2.11 I did indeed switch to using the
Slackbuild from -current with the following important change (also PHP >7.2 requires libsodium):
Code:
--with-readline
# --without-readline
# --with-libedit
At 7.3 I tested building with libedit and made the switch by building and installing libedit using the Slackbuild from -current. But I continue to build with earlier Alpine and make this change:
Code:
#ALPINE=2.21
ALPINE=2.20
It appears I added pcre2 at 7.4 and removed a few compile options such as --with-gd, --enable-wddx --enable-zip. Run .configure and check the resulting config.log. I also added oniguruma from SBo at 7.4.
I have made a few other changes to the build options in the Slackbuild, but nothing noteworthy that I am aware of. The main point I would make is that PHP up to 7.4.2 builds and works easily on Slackware 14.2 with only a few added dependencies and simple tweaking of the Slackbuild from -current. Just look at the config.log and build errors to sort out the necessary additions and changes - no secret sauce to add that I have encountered!