How to Install Binary Clang on Any GNU/Linux Distro
For clang, clang++ and several others including LLVM.
Clang is a front-end compiler for the languages C, C++ , Objective-C and Objective-C++ that uses LLVM as a backend .
It aims to be another alternative to GCC, the GNU set of compilers .
Download the latest version here, the package name should be:
clang+llvm-<VERSION>-x86_64-linux-gnu-ubuntu- 18.04.tar.xz (despite having the name
ubuntu and an old version, it works for any distro), according to the publication date of this article, the most recent version is
The package has several binaries, including
/opt renaming to directory with shorter name, example:
Export to your
Enjoy and count this new installation to your GNU Glibc by doing the following:
- 01. Create a file named
libs.confand enter the
libpath to it:
And paste the path below into that file:
- 02. Save and move to the new libs directory:
- 03. Read everything:
And be happy! 😃
Mainly you who use Gentoo and NO will need to compile Clang every time there is a new version!!! It takes time pakas! 😛