具体参考:
阿里云 centos8.0 X64 安装 PHP7.4.4
./configure --prefix=/usr/local/php8 --with-config-file-path=/usr/local/php8/lib --with-curl --with-freetype --enable-gd --with-jpeg --with-webp --with-xpm --enable-gd-jis-conv --with-gettext --with-kerberos --with-libdir=lib64 --with-mysqli --with-pdo-mysql --enable-mysqlnd --with-openssl --with-pcre-jit --with-pear --with-xsl --with-zlib --enable-fpm --enable-bcmath --enable-mbregex --enable-mbstring --enable-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-xml --with-zip
具体每个辅助参数可以用./configure --help|grep xxx
(譬如:./configure --help|grep gd
)查看。
#这里注意 每个人的情况不