当前位置:论坛首页 > Linux面板 > 求助

【已解答】为啥php重新编译无法识别呢

发表在 Linux面板2023-4-10 15:16 [复制链接] 1 3204

本帖最后由 堡塔运维香菜卷 于 2023-4-10 16:15 编辑

配置里获取的编译命令:
./configure  --prefix=/www/server/php/73 --with-config-file-path=/www/server/php/73/etc --with-php-config=/www/server/php/73/bin/php-config --enable-fpm --with-fpm-user=www --with-fpm-group=www --enable-mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-iconv-dir --with-freetype-dir=/usr/local/freetype --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl=/usr/local/curl --enable-mbregex --enable-mbstring --enable-intl --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl=/usr/local/openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --with-gettext --disable-fileinfo --enable-opcache

但是报错提示:
configure: WARNING: unrecognized options: --with-config-file-path, --enable-fpm, --with-fpm-user, --with-fpm-group, --enable-mysqlnd, --with-mysqli, --with-pdo-mysql, --with-iconv-dir, --with-freetype-dir, --with-jpeg-dir, --with-png-dir, --with-zlib, --with-libxml-dir, --enable-xml, --disable-rpath, --enable-bcmath, --enable-shmop, --enable-sysvsem, --enable-inline-optimization, --with-curl, --enable-mbregex, --enable-mbstring, --enable-intl, --with-mcrypt, --enable-ftp, --with-gd, --enable-gd-native-ttf, --with-openssl, --with-mhash, --enable-pcntl, --enable-sockets, --with-xmlrpc, --enable-soap, --with-gettext, --disable-fileinfo, --enable-opcache

使用道具 举报 只看该作者 回复
发表于 2023-4-10 16:15:26 | 显示全部楼层
您好,您是想自己手动编译PHP吗?执行configure 之前需要执行对应PHP版本的phpize,例如您的PHP73是/www/server/php/73/bin/phpize。执行后再执行。
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表