1. Install the compilation tools gcc, gcc-c, and make. Pay attention to solving dependencies. It is recommended to use yum for installation. If you cannot connect to the Internet, you can use the installation CD as the yum source—— 1) Edit the yum configuration file: Mount /dev/cdrom /media vi /etc/yum.repos.d/CentOS-Media.repo [c5-media] name=CentOS-$releasever - Media baseurl=file:///media * Change to CD mount point enabled=1 * Change to 1 To enable gpgcheck=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 2) Set the alias value: Vi /etc/bashrc alias yum="yum --disablerepo=\ * --enablerepo=c5-media"