diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/INSTALL.md | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/docs/INSTALL.md b/docs/INSTALL.md index b0090e77..26b125b8 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -16,7 +16,21 @@ This image is automatically generated when a push to the stable repo happens. You will find your target source code in `/src` in the container. If you want to build AFL++ yourself, you have many options. The easiest choice -is to build and install everything: +is to build and install everything. + +First install the required packages: + +On Debian 10: +```shell +sudo apt-get update +sudo apt-get install -y build-essential python3-dev automake cmake git flex bison libglib2.0-dev libpixman-1-dev python3-setuptools +# try to install llvm 11 and install the distro default if that fails +sudo apt-get install -y lld-11 llvm-11 llvm-11-dev clang-11 || sudo apt-get install -y lld llvm llvm-dev clang +sudo apt-get install -y gcc-$(gcc --version|head -n1|sed 's/\..*//'|sed 's/.* //')-plugin-dev libstdc++-$(gcc --version|head -n1|sed 's/\..*//'|sed 's/.* //')-dev +sudo apt-get install -y ninja-build # for QEMU mode +``` + +On other distributions and versions of Debian: ```shell sudo apt-get update @@ -25,6 +39,10 @@ sudo apt-get install -y build-essential python3-dev automake cmake git flex biso sudo apt-get install -y lld-11 llvm-11 llvm-11-dev clang-11 || sudo apt-get install -y lld llvm llvm-dev clang sudo apt-get install -y gcc-$(gcc --version|head -n1|sed 's/.* //'|sed 's/\..*//')-plugin-dev libstdc++-$(gcc --version|head -n1|sed 's/.* //'|sed 's/\..*//')-dev sudo apt-get install -y ninja-build # for QEMU mode +``` + +Then install AFLplusplus +```shell git clone https://github.com/AFLplusplus/AFLplusplus cd AFLplusplus make distrib |