Saturday, November 3, 2018

Ubuntu - Install clang

I followed the following instruction to install clang on Ubuntu 18.04:

$ wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
$ sudo apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main"
$ sudo apt-get update
$ sudo apt-get install -y clang-6.0
$ sudo ln -s /usr/bin/clang-6.0 /usr/bin/clang

$ clang --version
clang version 6.0.1-svn334776-1~exp1~20181018153226.114 (branches/release_60)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
$


Reference:



No comments:

Post a Comment