libCacheSim uses camke build system and has a few dependencies: glib tcmalloc, zstd.
sudo apt install libglib2.0-dev libgoogle-perftools-dev cmake
zstd must be installed from source
wget https://github.com/facebook/zstd/releases/download/v1.5.0/zstd-1.5.0.tar.gz;
tar xvf zstd-1.5.0.tar.gz;
pushd zstd-1.5.0/build/cmake/;
mkdir _build && cd _build/;
cmake .. && make -j;
sudo make install;
popd;
git clone --recursive https://github.com/dmlc/xgboost;
pushd xgboost;
mkdir _build && cd _build;
cmake .. && make -j;
sudo make install;
popd;
git clone --recursive https://github.com/microsoft/LightGBM;
pushd LightGBM;
mkdir _build && cd _build;
cmake .. && make -j;
sudo make install
popd;
using homebrew as an example
brew install cmake glib google-perftools
And you need to install the rest of the dependencies manually.