美文网首页
编译安装PHP 7.3

编译安装PHP 7.3

作者: Marksirl | 来源:发表于2020-06-18 00:57 被阅读0次
sudo ./configure \
--prefix=/usr/local/lnmp/php7319 \
--with-config-file-path=/usr/local/lnmp/php7319/etc \
--with-curl= \
--with-gd=/usr/local/Cellar/gd/2.3.0 \
--with-iconv \
--with-freetype-dir=/usr/local/Cellar/freetype/2.10.1 \
--with-jpeg-dir=/usr/local/Cellar/jpeg/9d \
--with-png-dir=/usr/local/Cellar/libpng/1.6.37 \
--with-zlib=/usr/local/Cellar/libzip/1.7.1 \
--with-libxml-dir=/usr/local/Cellar/libxml2/2.9.10_1 \
--with-mhash=/usr/local/Cellar/mhash/0.9.9.9 \
--with-mysqli \
--with-mysql-sock \
--enable-mbstring \
--enable-discard-path \
--enable-magic-quotes \
--enable-safe-mode \
--enable-bcmath \
--enable-shmop \
--enable-sysvsem \
--enable-inline-optimization \
--with-curlwrappers \
--enable-mbregex \
--enable-fastcgi \
--enable-force-cgi-redirect \
--enable-mbstring \
--enable-ftp \
--enable-gd-native-ttf \
--with-openssl=/usr/local/Cellar/openssl@1.1/1.1.1g \
--enable-pcntl \
--enable-sockets \
--with-xmlrpc \
--enable-zip \
--enable-soap \
--with-pear \
--with-gettext=/usr/local/Cellar/gettext/0.20.2_1 \
--with-mime-magic \
--enable-suhosin \
--enable-session \
--with-mcrypt \
--with-webp-dir=/usr/local/Cellar/libwebp \
--with-zlib=/usr/local/Cellar/zlib/1.2.11 \
--with-zlib-dir=/usr/local/Cellar/zlib/1.2.11 \
--enable-fpm

-- dir的路径需要改成自己本机的对应的库。

相关文章

网友评论

      本文标题:编译安装PHP 7.3

      本文链接:https://www.haomeiwen.com/subject/xbcyxktx.html