cd /news/developer-tools/install-clang-5-0 · home topics developer-tools article
[ARTICLE · art-9904] src=gist.github.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

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.

read1 min views20 publishedDec 21, 2017

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

sudo apt install codeblocks codeblocks-contrib

── more in #developer-tools 4 stories · sorted by recency
── more on @clang 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/install-clang-5-0] indexed:0 read:1min 2017-12-21 ·