Install Clang 5.0 The article provides a step-by-step command-line guide for installing Clang 5.0 and related LLVM tools on Ubuntu 16.04 (Xenial). It includes commands to add the LLVM repository, install the compiler and debugging tools, and set Clang as the default system compiler using update-alternatives. The guide also suggests installing additional development tools like build-essential, CMake, and optionally the Code::Blocks IDE. gistfile1.txt This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters sudo add-apt-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main" wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add - sudo apt update sudo apt install python-lldb-5.0 sudo apt install clang-5.0 clang-5.0-doc libclang-common-5.0-dev libclang-5.0-dev libclang1-5.0 libclang1-5.0-dbg libllvm-5.0-ocaml-dev libllvm5.0 libllvm5.0-dbg lldb-5.0 llvm-5.0 llvm-5.0-dev llvm-5.0-doc llvm-5.0-examples llvm-5.0-runtime clang-format-5.0 python-clang-5.0 libfuzzer-5.0-dev sudo ln -sf /usr/bin/llvm-symbolizer-5.0 /usr/bin/llvm-symbolizer sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang-5.0 60 sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 50 sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-5.0 60 sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 50 sudo apt install build-essential cmake valgrind kcachegrind vim cccc OPTIONAL: Code::Blocks IDE sudo apt install codeblocks codeblocks-contrib You can follow the guide from https://mousepawmedia.net/help/tools/cpp.html trimming-down-on-plugins onward to configure C::B