The EPEL repository provides clang
RPM package. So to install clang
on CentOS 7
, You need to installEPEL
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.
(You can also read this post on itechlounge.net)