最近在源码编译PHP时./configure时老是会提示出错,有些原因没有直接指出时缺少扩展文件,后来才发现原来时缺少一些必要的依赖,以下整理出目前碰到的较常见的依赖关系,做为记录,后续补充完善
1.开启curl扩展,需提前yum -y install libcurl curl-devel
2.开启bz2扩展,需提前yum -y install bzip2 bzip2-devel
3.开启openssl扩展,需提前yum -y openssl openssl-devel
4.开启gd扩展,需提前yum -y libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel
5.开启xml扩展,需提前yum -y libxml2 libxml2-devel