ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
**一.安装PHP8依赖包** ``` yum -y install autoconf freetype gd libpng libpng-devel libjpeg libxml2 libxml2-devel zlib curl curl-devel net-snmp-devel libjpeg-devel php-ldap openldap-devel openldap-clients freetype-devel gmp-devel libzip libzip-devel sqlite-devel ```   **二.编译PHP8依赖包oniguruma** 1.解压 ``` tar -zxvf oniguruma-6.9.4.tar.gz ``` 2.切换目录 ``` cd oniguruma-6.9.4/ ``` 3.生成configure ``` ./autogen.sh ``` 4.生成编译配置文件 ``` ./configure --prefix=/usr ``` 5.编译并安装 ``` make && make install ```   2.编译PHP8主包 1.解压 ``` tar xzf php-8.0.0.tar.gz ``` 2.切换目录 ``` cd php-8.0.0/ ``` 3.生成编译配置文件 ``` ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --with-fpm-user=nginx --with-fpm-group=nginx --enable-mysqlnd --with-mysqli --with-pdo-mysql --enable-opcache --with-pcre-jit --enable-gd --with-jpeg --with-freetype --with-gettext --with-curl --with-openssl --enable-sockets --enable-mbstring --enable-xml --with-zip --with-zlib --with-snmp --with-mhash --enable-ftp --enable-bcmath --enable-soap --enable-shmop --enable-sysvsem --enable-pcntl --with-gmp ``` 4.编译并安装 ``` make && make install ```   ### **系统的学习PHP** 关注:PHP自学中心,回复相应的关键词,领取以下视频教程 **与mysql的零距离接触** 公众号里回复:20190128   #### **还有其他的教程的关键词,请关注公众号查看每天分享的文章教程的头部** ![](https://img.kancloud.cn/96/af/96af322d2cdc53d3fbbe981affa60c7f_150x150.jpg)