Alex Brodov
Alex Brodov

Reputation: 3515

clang scan-build Redhat installation

I've installed clang-3.4.2-7.el7.x86_64.rpm on RHEL 7 and it came with llvm, but i couldn't find the scan-build utility.

I have already installed gcc and cmake and all other tools that are mentioned here But unfortunately i can't execute the scan-build commands.

BTW, I want to integrate it with Clang Scan-Build Plugin.

Am I missing something in the configuration?

Upvotes: 6

Views: 1814

Answers (2)

Rob T.
Rob T.

Reputation: 386

Clang analyzer doesn't get installed by default, to install it with the current version of LLVM 6.0 run:

yum install llvm-toolset-6.0-clang-analyzer

You may also want to install llvm-toolset-6.0-clang-tools-extra.

How to install Clang/LLVM 6 on RHEL has this and other details.

Upvotes: 1

bernie
bernie

Reputation: 756

It's in the package clang-analyzer

Upvotes: 7

Related Questions