手记

PHP安装编译环境相关依赖

PHP下载地址:http://php.net/在这里挑选你想用的版本即可。下载源码包后,解压至本地任意目录(保证读写权限),留待使用。安装PHP前,需要安装编译环境和PHP的相关依赖。下面是相关命令

centos:

yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers gd gd2 gd-devel gd2-devel perl-CPAN pcre-devel

0人推荐
随时随地看视频
慕课网APP