mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-11-24 08:04:35 +03:00
Fix timelord-install.sh for CentOS\RHEL (#15992)
* Fix timelord-install.sh for CentOS\RHEL Signed-off-by: LeroyINC <leroy@integrated.net> * Update install-timelord.sh Changed command structure to be more compatible with different flavors of Linux * Update install-timelord.sh updated as requested. --------- Signed-off-by: LeroyINC <leroy@integrated.net>
This commit is contained in:
parent
12bde8c5ee
commit
b941ddcb7f
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user