ubuntu 18.04 install clang 11
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu 18.04 install clang 11相关的知识,希望对你有一定的参考价值。
参考技术A Install clang without compiling the soruce code1 gedit /etc/apt/sources.list
sudo apt-get update
sudo apt-get upgrade
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
3
apt-get install clang-11 lldb-11 lld-11
apt-get install libc++-11-dev libc++abi-11-dev
4
cd /usr/bin
sudo ln -s clang-11 clang
sudo ln -s clang++-11 clang++
sudo ln -s /usr/bin/llvm-ar-11 /usr/bin/llvm-ar
sudo ln -s /usr/bin/llvm-as-11 /usr/bin/llvm-as
sudo ln -s /usr/bin/clangd-11 /usr/bin/clangd
sudo ln -s /usr/bin/clang-tidy-11 /usr/bin/clang-tidy
[1] https://apt.llvm.org/
[2] https://linuxhint.com/install-llvm-ubuntu/
[3] https://dwijaybane.wordpress.com/2018/07/20/llvm-clang-8-with-compiler-explorer/
以上是关于ubuntu 18.04 install clang 11的主要内容,如果未能解决你的问题,请参考以下文章
Installing Ubuntu 18.04 by USB flash drive
---qtcreator installation under Ubuntu 18.04