Mucpp is available in different versions of Clang: 14/15, 10 and 3.6.
Clang installation: Clang 14 is the default version in Ubuntu 22.04. Therefore, the following command will install the required libraries for this version:sudo apt install clang libclang-devIf you choose to install another Clang version (e.g., clang 15), add the version as follows:
sudo apt install clang-15 libclang-15-dev
Note: since the name of the binary files installed will contain the version, it is recommended to create a simbolic link to use the binaries without the version as follows:
sudo ln -s /usr/bin/clang-15 /usr/bin/clang
sudo ln -s /usr/bin/clang++-15 /usr/bin/clang++
sudo ln -s /usr/bin/llvm-config-15 /usr/bin/llvm-config
Change the version everywhere it appears in the above and below commands in case you choose to install MuCPP with a specific version of Clang (15, 14, 10, 3.6).
sudo apt-get install git
Configure git setting your name and email:
git config --global user.name "Your name"Further information on how to use Git can be found in Section "Handling mutants with Git".
git config --global user.email "Your email"
sudo apt install make
cd download_directory
mv mucpp-14.gz mucpp.gz
gzip -d mucpp.gz
ls -l mucpp
chmod +x mucpp
sudo cp mucpp /usr/bin
dirname $(which clang++)/../lib/clang/CLANG_VERSION/include where CLANG_VERSION depends on the installed Clang version.
Please, go to the following page to obtain further information: Click
here.
After these steps, the example program "cars.tar.gz" can be downloaded
and unzipped to check the correct installation of the mutation tool
(see Section "Example program" to observe an example of the usage of the tool).