# Install Clang 5.0

> Source: <https://gist.github.com/CodeMouse92/db4853223585940f1bd143debab0c87e>
> Published: 2017-12-21 21:51:30+00:00

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
