Skip to content

Commit

Permalink
Fix timelord-install.sh for CentOS\RHEL
Browse files Browse the repository at this point in the history
  • Loading branch information
LeroyINC committed Aug 9, 2023
1 parent 16cd673 commit 850fb28
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions install-timelord.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,21 @@ 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
PYTHON_DEV_DEPENDENCY="$PYTHON_VERSION"-devel
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"
Expand All @@ -102,8 +109,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 "yum install gcc gcc-c++ gmp-devel $PYTHON_DEV_DEPENDENCY libtool make autoconf automake openssl-devel libevent-devel boost-devel python3 cmake -y" | tr -s ' '
sudo yum install gcc gcc-c++ gmp-devel "$PYTHON_DEV_DEPENDENCY" libtool make autoconf automake openssl-devel libevent-devel boost-devel python3 cmake -y | tr -s ' '
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"
Expand Down

0 comments on commit 850fb28

Please sign in to comment.