I need to compile all mainstream PHP versions, and after compilation, I need to copy them to run on other computers.
I can easily compile versions of PHP 7.4 (including 7.4) using configure/make/make install on Mac. However, when compiling versions between 5.6 and 7.3, various strange dependency versions or other issues may arise. The cost of dealing with these issues is very high.
Using brew can result in successful compilation (5.6-8.4), but copying the successfully compiled files to other Macs can lead to errors where dependencies do not exist.
So I wonder if there is a simpler way to meet my needs? If you could provide ideas, I would be extremely grateful!
I tried to modify the formula file of brew, but I couldn’t achieve the desired effect.
yanwushu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.