PHP Compilation Error

It is not my first time to install PHP to the Linux server, but I am always not remember the error and which packages should install to get away the error.

So I am sharing some error code with the packages needed as below.

Error: Configure: error: xml2-config not found. Please check your libxml2 installation.
Solution:

yum install libxml2-devel

Error: Checking for pkg-config… /usr/bin/pkg-config configure: error: Cannot find OpenSSL’s
Solution:

yum install openssl-devel

Error: Configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore!
Solution:

yum install mysql-devel

Error: Checking for unixODBC support… configure: error: ODBC header file ‘/usr/include/sqlext.h’ not found!
Solution:

yum install unixODBC-devel

Error: Configure: error: Cannot find pspell
Solution:

yum install pspell-devel