php - php 5.6或8无法构建,7.3构建成功
问题描述
我们有一台安装了 3 个 php 版本的服务器
5.6、7.3 和 8.0
全部作为 FPM 运行。为了使MSSQL
扩展工作所有版本停止运行。建议是从 custombuild 重建。
7.3 重新构建没有问题并且(尽管mssql
模块仍然不存在)现在正在工作。但 5.6 和 8.0 返回以下内容:
[root@.. custombuild]# ./build php_expert 8.0 php-fpm
./build: line 13188: ldconfig: command not found
Found /usr/local/directadmin/custombuild/php-8.0.1.tar.gz
Extracting ...
Done.
Configuring php-8.0.1...
Patching php-fpm to not fail on startup if User quota maxed out on socket chown
patching file sapi/fpm/fpm/fpm_unix.c
Hunk #1 succeeded at 242 (offset 7 lines).
Done Configuration.
Can't open Makefile: No such file or directory.
Trying to make php...
make: *** No targets specified and no makefile found. Stop.
[root@.. custombuild]#
** 更新 **
因此,将 sbin 添加到路径现在已删除错误 abuilt ldconfig command not found 但其他一切仍然相同。
[root@... custombuild]# export PATH=$PATH:/usr/sbin
[root@... custombuild]# ./build php_expert 8.0 php-fpm
Found /usr/local/directadmin/custombuild/php-8.0.1.tar.gz
Extracting ...
Done.
Configuring php-8.0.1...
Patching php-fpm to not fail on startup if User quota maxed out on socket chown
patching file sapi/fpm/fpm/fpm_unix.c
Hunk #1 succeeded at 242 (offset 7 lines).
Done Configuration.
Can't open Makefile: No such file or directory.
Trying to make php...
make: *** No targets specified and no makefile found. Stop.
[root@... custombuild]#