Install Infer on Mac

You’ll need Homebrew. Simply type this into a terminal:

1
brew install infer

If you get the following error…

1
2
3
Error: No available formula for infer 
Searching taps...
homebrew/science/infernal

… Then you must run this command first:

1
brew update

And wait a few minutes, and then run brew install infer. More info here.

Install Infer on Linux

Follow the install from source instructions below to install Infer on your system. Alternatively, use our Docker image:

1
2
3
wget -O Dockerfile https://raw.githubusercontent.com/facebook/infer/master/docker/Dockerfile
wget -O run.sh https://raw.githubusercontent.com/facebook/infer/master/docker/run.sh
sh run.sh

Try Infer in your browser

Try Infer on a small example on Codeboard.

Install from source

We recommend that you start from our latest GitHub release, which contains a pre-compiled version of clang, used for our C/Objective-C analyzers.

You’ll need to first install the build dependencies, then run the following commands:

1
2
3
4
tar xf infer-<release>.tar.xz
cd infer-<release>/
./build-infer.sh
make install

Edit on GitHub