Use the yum program to install the required development kit (The following is the standard rpm package name)
# Yum install gcc-c ++ gcc-g77 flex bison autoconf automake bzip2-devel zlib-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel openssl-devel libxml2-devel gettext-devel pcre-devel
[/Php]
Here we will compile and install some minor software necessary for GD in CentOS, such as libpng, libtiff, freetype, libjpeg, and gettext-devel, and install them with RPM, it can avoid time-consuming manual CentOS compilation and installation, and avoid many errors. Compilation of these small software is very troublesome. The compilation of these small software is wrong. Of course, GD cannot be installed, and php5 compilation is useless. Therefore, install these services in a fast and concise manner. This will not affect the server performance.