← source index

requirements.sh

14 lines  ·  602 B  ·  bash
if command -v dnf >/dev/null 2>&1; then
    sudo dnf install -y gcc-c++ make openssl-devel boost-devel python3
elif command -v apt-get >/dev/null 2>&1; then
    sudo apt-get update
    sudo apt-get install -y build-essential libssl-dev libboost-all-dev python3
elif command -v pacman >/dev/null 2>&1; then
    sudo pacman -S --needed base-devel openssl boost python
elif command -v brew >/dev/null 2>&1; then
    xcode-select --install 2>/dev/null || true
    brew install openssl@3 boost python@3
else
    echo "No supported package manager found. Install OpenSSL and Boost dev packages manually."
fi