diff --git a/install-timelord.sh b/install-timelord.sh index cfa59c929c298..ea2e6c9e2f314 100644 --- a/install-timelord.sh +++ b/install-timelord.sh @@ -76,14 +76,23 @@ symlink_vdf_bench() { if [ "$(uname)" = "Linux" ] && type apt-get; then UBUNTU_DEBIAN=true echo "Found Ubuntu/Debian." + elif [ "$(uname)" = "Linux" ] && type dnf || yum; then RHEL_BASED=true echo "Found RedHat." + + if [ "$INSTALL_PYTHON_DEV" ]; then + yumcmd="sudo yum install $PYTHON_VERSION-devel gcc gcc-c++ gmp-devel libtool make autoconf automake openssl-devel libevent-devel boost-devel python3 cmake -y" + else + yumcmd="sudo yum install gcc gcc-c++ gmp-devel libtool make autoconf automake openssl-devel libevent-devel boost-devel python3 cmake -y" + fi + elif [ "$(uname)" = "Darwin" ]; then MACOS=true echo "Found MacOS." fi + if [ -e "$THE_PATH" ]; then echo "$THE_PATH" echo "vdf_client already exists, no action taken" @@ -102,8 +111,8 @@ else elif [ -e venv/bin/python ] && test "$RHEL_BASED"; then echo "Installing chiavdf dependencies on RedHat/CentOS/Fedora" # Install remaining needed development tools - assumes venv and prior run of install.sh - echo "yum install gcc gcc-c++ gmp-devel $PYTHON_DEV_DEPENDENCY libtool make autoconf automake openssl-devel libevent-devel boost-devel python3 cmake -y" - sudo yum install gcc gcc-c++ gmp-devel "$PYTHON_DEV_DEPENDENCY" libtool make autoconf automake openssl-devel libevent-devel boost-devel python3 cmake -y + echo "$yumcmd" + ${yumcmd} echo "Installing chiavdf from source on RedHat/CentOS/Fedora" echo venv/bin/python -m pip install --force --no-binary chiavdf "$CHIAVDF_VERSION" venv/bin/python -m pip install --force --no-binary chiavdf "$CHIAVDF_VERSION"