ubuntu 18.04 install clang 11

ubuntu 18.04 install clang 11,第1张

Install clang without compiling the soruce code
1 gedit /etc/apt/sourceslist

sudo apt-get update
sudo apt-get upgrade
wget -O - https://aptllvmorg/llvm-snapshotgpgkey|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://aptllvmorg/
[2] https://linuxhintcom/install-llvm-ubuntu/
[3] https://dwijaybanewordpresscom/2018/07/20/llvm-clang-8-with-compiler-explorer/

欢迎分享,转载请注明来源:浪漫分享网

原文地址:https://hunlipic.com/meirong/10999806.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-11-20
下一篇2023-11-20

发表评论

登录后才能评论

评论列表(0条)

    保存