在编译php7.4中到php8有些参数就用不了
configure: WARNING: unrecognized options: --with-iconv-dir, --with-freetype-dir, --with-jpeg-dir, --with-png-dir, --with-libxml-dir, --enable-inline-optimization, --with-libmbfl, --with-gd, --with-xmlrpc, --with-libzip, --enable-maintainer-zts
修改成
--enable-gd Include GD support
--with-external-gd Use external libgd
--with-webp GD: Enable WEBP support (only for bundled libgd)
--with-jpeg GD: Enable JPEG support (only for bundled libgd)
--with-xpm GD: Enable XPM support (only for bundled libgd)
--with-freetype GD: Enable FreeType 2 support (only for bundled
libgd)
--enable-gd-jis-conv GD: Enable JIS-mapped Japanese font support (only
for bundled libgd)
PHP8的编辑修正后参数
./configure --prefix=/usr/local/php8 \
--with-config-file-path=/usr/local/php/etc \
--enable-fpm \
--with-fpm-user=www \
--with-fpm-group=www \
--with-sodium \
--enable-mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-mysql-sock=/var/lib/mysql/mysql.sock \
--enable-calendar \
--with-zlib \
--enable-xml \
--with-libxml \
--enable-bcmath \
--enable-shmop \
--enable-sysvsem \
--with-curl \
--enable-mbregex \
--enable-mbstring \
--enable-intl \
--enable-ftp \
--with-openssl \
--with-mhash \
--enable-sockets \
--with-zip \
--enable-soap \
--with-gettext \
--enable-fileinfo \
--enable-opcache \
--with-pear \
--disable-phar \
--with-ldap=shared \
--without-gdbm \
--enable-pcntl \
--enable-zts \
--enable-gd \
--with-external-gd \
--with-webp \
--with-jpeg \
--with-xpm \
--with-freetype \
--enable-gd-jis-conv