how do I set Clang 9 as the default C++ compiler on Ubuntu 19.10? I searched the internet, but nothing helped. Thank you for answer :)
In Ubuntu 16.04, I could:
$ sudo apt install clang
$ scan-build --help
USAGE: scan-build [options] <build command> [build options]
...
But in Ubuntu 18.04, after installing clang
, the scan-build
executable is not installed.
How can I use apt
to install the Clang static analyzer on Ubuntu 18.04?
There are many similar named packages for libasan (the address sanitizer for gcc and clang):
$ apt-cache search libasan | grep -v dbg | grep -v cross
libasan2 - AddressSanitizer -- a fast memory error detector
libasan3 - AddressSanitizer -- a fast memory error detector
libasan4 - AddressSanitizer -- a fast memory error detector
libasan0 - AddressSanitizer -- a fast memory error detector
(Output is from Ubuntu 17.10. Ubuntu 18.04 also has libasan5
.)
- What is the difference between these packages?
- Which one should I install?
So I'm trying to install Halide on my Ubuntu 12.04 (64bit). I need llvm-3.2 and clang to be installed.
Running sudo apt-get install llvm-3.2
ends up with 'package not found'.
Trying sudo apt-get install llvm
or sudo apt-get install clang
installs 2.9 versions. Google helped me with this
sudo add-apt-repository ppa:kxstudio-team/builds
sudo apt-get update
Now, sudo apt-get install llvm-3.2 clang-3.2
works. But when I run make in Halide folder I still get clang:Command not found.