Linux : How to install clang on CentOS 7
The EPEL repository provides clang RPM package. So to install clang on CentOS 7, You need to install EPEL first: sudo yum install epel-release Then you can install “clang”: sudo yum install clang After this, you can use clang to compile your program.