Although I haven’t used the CentOS development environment much recently, a friend previously asked about what needs to be installed for a CentOS compilation environment. After researching, I’m making a note of it here.

1. Complete Command

yum install gcc 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

2. Simplified Command

yum groupinstall "Development tools"

Reference: http://blog.chinaunix.net/uid-26204366-id-3202688.html