I am trying to compile a C++ project on a PC with "Debian GNU/Linux 10". The project requires clang, so I installed it with:
sudo apt-get install clang
But I run into the following error:
Clang version must be at least 11, the version used is 7.0.1
How can I install clang 11?
Note: I do not want to install the entire LLVM package again. Just want to upgrade Clang from version 7 to 11, preferably via command-line.
2
Answers
I found the solution after some searching. Here is what I did to make it work:
For documentation: https://apt.llvm.org/
I would suggest installing the latest stable 15
Doc https://apt.llvm.org/