al_functions_cli.lo main/fastcgi.lo sapi/cgi/cgi_main.lo -lcrypt -lresolv -lcrypt -lrt -lrt -lm -ldl -lxml2 -lssl -lcrypto -lsqlite3 -lcurl -lxml2 -lz -lpng15 -ljpeg -lfreetype -lonig -lmysqlclient -lpthread -lm -lrt -ldl -lsqlite3 -lxml2 -lxml2 -lcrypt -lxml2 -lxml2 -lxml2 -lzip -lcrypt -o sapi/cgi/php-cgi
Generating phar.php
/bin/sh: line 1: 18331 Segmentation fault ` if test -x "/service/php-7.4.20/sapi/cli/php"; then /service/php-7.4.20/build/shtool echo -n -- "/service/php-7.4.20/sapi/cli/php -n"; if test "x" != "x"; then /service/php-7.4.20/build/shtool echo -n -- " -d extension_dir=/service/php-7.4.20/modules"; for i in bz2 zlib phar; do if test -f "/service/php-7.4.20/modules/$i.la"; then . /service/php-7.4.20/modules/$i.la; /service/php-7.4.20/build/shtool echo -n -- " -d extension=$dlname"; fi; done; fi; else /service/php-7.4.20/build/shtool echo -n -- "/service/php-7.4.20/sapi/cli/php"; fi;` -n -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 /service/php-7.4.20/ext/phar/build_precommand.php > ext/phar/phar.php
make: *** [ext/phar/phar.php] Error 139
al_functions_cli.lo main/fastcgi.lo sapi/cgi/cgi_main.lo -lcrypt -lresolv -lcrypt -lrt -lrt -lm -ldl -lxml2 -lssl -lcrypto -lsqlite3 -lcurl -lxml2 -lz -lpng15 -ljpeg -lfreetype -lonig -lmysqlclient -lpthread -lm -lrt -ldl -lsqlite3 -lxml2 -lxml2 -lcrypt -lxml2 -lxml2 -lxml2 -lzip -lcrypt -o sapi/cgi/php-cgi
Generating phar.php
/bin/sh: line 1: 18331 Segmentation fault ` if test -x "/service/php-7.4.20/sapi/cli/php"; then /service/php-7.4.20/build/shtool echo -n -- "/service/php-7.4.20/sapi/cli/php -n"; if test "x" != "x"; then /service/php-7.4.20/build/shtool echo -n -- " -d extension_dir=/service/php-7.4.20/modules"; for i in bz2 zlib phar; do if test -f "/service/php-7.4.20/modules/$i.la"; then . /service/php-7.4.20/modules/$i.la; /service/php-7.4.20/build/shtool echo -n -- " -d extension=$dlname"; fi; done; fi; else /service/php-7.4.20/build/shtool echo -n -- "/service/php-7.4.20/sapi/cli/php"; fi;` -n -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 /service/php-7.4.20/ext/phar/build_precommand.php > ext/phar/phar.php
make: *** [ext/phar/phar.php] Error 139
如上报错
查看编译参数中是否有 --with-zip 如果有百分之八十就是本机没有安装 zip 依赖 安装一下就可以了
注意 依赖名是 libzip 下面安装代码
yum install -y libzip
问题解决了,希望动动手指点赞支持
如果没有解决,说明你很幸运,你可以造轮子了