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. While the first line is necessary, the following two lines needs to be run if you encounter errors including:
- fatal error: 'argp.h' file not found
- /usr/local/include/glib-2.0/glib/gtypes.h:34:10: fatal error: 'glibconfig.h' file not found
brew install cmake glib google-perftools
brew install argp-standalone
brew install pkg-config
Use the below command to install
brew install zstd
If still shows zstd not found after compilation, try
brew link zstd