PHP
ubuntu
sh
# 安装必要库
sudo apt install -y \
build-essential gcc g++ make cmake autoconf automake \
re2c wget cron bzip2 libzip-dev libc6-dev bison file \
flex m4 gawk less cpp binutils diffutils unzip tar \
libbz2-dev libncurses5-dev libtool libevent-dev \
openssl libssl-dev zlib1g-dev libglib2.0-dev \
libjpeg-dev libpng-dev libkrb5-dev curl \
libcurl4-openssl-dev libpcre3-dev libpq-dev gettext \
libxml2-dev libcap-dev ca-certificates libc-client-dev \
psmisc patch git libc-ares-dev libicu-dev e2fsprogs \
libxslt1-dev libexpat1-dev libaio-dev libtirpc-dev \
libsqlite3-dev libonig-dev lsof pkg-config libtinfo-dev \
libnuma-dev libwebp-dev gnutls-dev iproute2 xz-utils gzip \
libldap2-dev libsasl2-dev libsodium-dev
# success --with-freetype 需要配置专门的扩展包
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-config-file-scan-dir=/usr/local/php/conf.d --enable-fpm --with-fpm-user=www --with-fpm-group=www --enable-mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-jpeg --with-zlib --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --with-curl --enable-mbregex --enable-mbstring --enable-intl --enable-ftp --enable-gd --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-zip --enable-soap --with-gettext --enable-opcache --with-xsl --with-pear --with-webp
make
make install
0