Skip to content

Commit

Permalink
Add rhel support for timeloard installation (Chia-Network#1538)
Browse files Browse the repository at this point in the history
Co-authored-by: Amjad Yaseen <[email protected]>
  • Loading branch information
ayaseen and Amjad Yaseen authored Mar 30, 2021
1 parent b913ca7 commit 9fecd22
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions install-timelord.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ 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"
elif [ "$(uname)" = "Darwin" ]; then
MACOS=true
echo "Found MacOS"
Expand All @@ -62,6 +65,14 @@ else
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"
symlink_vdf_bench "$PYTHON_VERSION"
elif [ -e venv/bin/python ] && test $RHEL_BASED; then
echo "Installing chiavdf from source 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 python3-devel libtool make autoconf automake openssl-devel libevent-devel boost-devel python3 -y
sudo yum install gcc gcc-c++ gmp-devel python3-devel libtool make autoconf automake openssl-devel libevent-devel boost-devel python3 -y
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"
symlink_vdf_bench "$PYTHON_VERSION"
elif [ -e venv/bin/python ] && test $MACOS && [ "$(brew info boost | grep -c 'Not installed')" -eq 1 ]; then
echo "Installing chiavdf requirement boost for MacOS"
brew install boost
Expand Down

0 comments on commit 9fecd22

Please sign in to comment.