我看php.sh源码是不支持修改编译参数。但是我又不得不修改你们的编译参数。因为一直安装php7.4老报错。
make: *** [Makefile:453: ext/phar/phar.php] Error 139
一直报这个问题,进入src里直接用我修改玩的编译命令编译是没问题。
./configure --prefix=/www/server/php/74 --with-config-file-path=/www/server/php/74/etc --enable-fpm --with-fpm-user=www --with-fpm-group=www --enable-mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-iconv-dir --with-freetype --with-jpeg --with-zlib --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl=/user/local/curl --enable-mbregex --enable-mbstring --enable-intl --enable-pcntl --enable-ftp --enable-gd --with-openssl=/usr/local/openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-soap --with-gettext --disable-fileinfo --enable-opcache --with-sodium=/usr/local/libsodium --with-webp
用这个编译然后make是不会报这个错误,但是用你们脚本里的,
./configure --prefix=${php_setup_path} --with-config-file-path=${php_setup_path}/etc --enable-fpm --with-fpm-user=www --with-fpm-group=www --enable-mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-iconv-dir --with-freetype --with-jpeg --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --enable-intl --enable-pcntl --enable-ftp --enable-gd --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-soap --with-gettext --disable-fileinfo --enable-opcache --with-sodium=/usr/local/libsodium --with-webp ${i_make_args}
这是你们的编译命令,我去掉了--with-libxml-dir=/usr ,因为我看编译时报错了,好像是libxml-dir这个有点问题。然后给curl和openssl加上指定路径。
make 都没问题,但是make install 面板很多功能无法操作。
我直接修改php.sh编译参数都无法编译成功,还是报 make: *** [Makefile:453: ext/phar/phar.php] Error 139 这个问题昨天的帖子都提到了,结果你们一直无视 只好单独开贴说这个问题了。
|
|