说明:
缺少的包请自行安装,这里只描述一些可能的问题和编译参数,一些支持的路径请根据自己的情况修改,比如–prefix,mysql以及postgresql的PDO路径
PHP7.3编译:
./configure --prefix=/opt/php7.3 --with-pdo-mysql=/opt/mysql8.0 --with-pdo-pgsql=/opt/pg12 --with-curl --with-gd --with-gettext --with-iconv-dir --with-kerberos --with-xmlrpc --with-mysqli --with-pcre-jit --with-pdo-mysql --with-pdo-sqlite --with-pear --with-xmlrpc --with-xsl --with-zlib --with-bz2 --with-mhash --enable-fpm --enable-bcmath --enable-inline-optimization --enable-gd-jis-conv --enable-mbregex --enable-mbstring --enable-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-sysvshm --enable-xml --enable-zip --with-ldap --with-openssl --enable-gd-jis-conv
PHP7.4编译:
./configure --prefix=/opt/php7.4 --with-pdo-mysql=/opt/mysql8.0 --with-pdo-pgsql=/opt/pg12 --with-curl --enable-gd --with-gettext --with-iconv-dir --with-kerberos --with-xmlrpc --with-mysqli --with-pcre-jit --with-pdo-mysql --with-pdo-sqlite --with-pear --with-xmlrpc --with-xsl --with-zlib --with-bz2 --with-mhash --enable-fpm --enable-bcmath --enable-inline-optimization --enable-gd-jis-conv --enable-mbregex --enable-mbstring --enable-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-sysvshm --enable-xml --with-zip --with-ldap --with-openssl --enable-gd-jis-conv
PHP8.0编译:
./configure --prefix=/opt/php8.0 --with-pdo-mysql=/opt/mysql8.0 --with-pdo-pgsql=/opt/pg13 --with-curl --enable-gd --with-gettext --with-kerberos --with-mysqli --with-pcre-jit --with-pdo-mysql --with-pdo-sqlite --with-pear --with-xsl --with-zlib --with-bz2 --with-mhash --enable-fpm --enable-bcmath --enable-gd-jis-conv --enable-mbregex --enable-mbstring --enable-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-sysvshm --enable-xml --with-zip --with-ldap --with-openssl --enable-gd-jis-conv
友情提醒:最后别忘记了拷贝源代码的php.ini文件😊
发表回复