chia-blockchain/install.sh

69 lines
1.8 KiB
Bash
Raw Normal View History

Separate timelord, add Windows/CentOS/AMZN (#62) 1.1.1 release * windows build instructions * install.sh newline fix \n wasn't as cross platform as it should be so reverted to an extra echo * Add CentOS to README.md Full CentOS 7.7 install instructions * mention blspy * confirmed boost 1.67.0 works on Ubuntu * Update README.md. * Fix problem with zip download. * Remove scm warning Revert install instructions due to scm fix * Update README and install scripts to separate timelord installation Do not install VDF server and its dependencies in install.sh, create a separate script install_timelord.sh for that. * Move installation of VDF server dependencies to install_timelord.sh * First and broken attempt at CentOS install * Working CentOS 7.7 install * typos in timelord explanation * Timlord/VDF build instructions Specifics for CentOS and MacOS * Various install tips and tricks * spelling error * Add AMZN linux 2 install * Add AMZN linux 2 timelord install Also clean up base install instructions * Combine TL for AMZN and CentOS * Nits for AMZN and CentOS * CentOS, AMZN timelord paralleling * Fix header layouts * Replace VDF server compilation scripts with Makefile * layout improvements * fast_vdf: Remove unused files * Partial ARM install support * missing l in lib * Fleshed out Windows/WSL installs And verified the method for upgrade to 19.x * Move MacOS install fullnode to bottom * Change to mongo "system-wide" * Add mongo start to WSL * Add actual upgrade for WSL/Ubuntu Co-authored-by: Mariano Sorgente <sorgente711@gmail.com> Co-authored-by: Rostislav Skudnov <skrostislav@gmail.com> Co-authored-by: Richard Kiss <him@richardkiss.com> Co-authored-by: wjblanke <wjb2002@flex.com>
2019-12-25 22:18:07 +03:00
set -e
find_python() {
set +e
unset BEST_VERSION
for V in 37 3.7 38 3.8 3
do
2020-04-02 19:01:22 +03:00
which python$V > /dev/null
if [ $? = 0 ]
then
2020-04-02 19:01:22 +03:00
if [ x$BEST_VERSION = x ]
then
BEST_VERSION=$V
fi
fi
done
echo $BEST_VERSION
set -e
}
2020-04-02 19:01:22 +03:00
if [ x$INSTALL_PYTHON_VERSION = x ]
then
INSTALL_PYTHON_VERSION=`find_python`
fi
2020-04-06 11:19:25 +03:00
# Manage npm and other install requirements on an OS specific basis
2020-04-06 00:01:45 +03:00
if [ `uname` = "Linux" ]; then
2020-04-06 02:23:19 +03:00
#LINUX=1
2020-04-06 00:01:45 +03:00
if type apt-get; then
2020-02-07 08:14:54 +03:00
# Debian/Ubuntu
2020-04-05 23:23:40 +03:00
sudo apt-get install -y npm
2020-04-06 00:01:45 +03:00
elif type yum; then
# CentOS or AMZN 2
sudo yum install -y python3 git
curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash -
sudo yum install -y nodejs
fi
2020-02-07 08:14:54 +03:00
fi
# this fancy syntax sets INSTALL_PYTHON_PATH to "python3.7" unless INSTALL_PYTHON_VERSION is defined
# if INSTALL_PYTHON_VERSION=3.8, then INSTALL_PYTHON_PATH becomes python3.8
INSTALL_PYTHON_PATH=python${INSTALL_PYTHON_VERSION:-3.7}
$INSTALL_PYTHON_PATH -m venv venv
2020-03-28 03:52:24 +03:00
if [ ! -f "activate" ]; then
ln -s venv/bin/activate
fi
2020-04-06 08:17:45 +03:00
echo "Python version is $INSTALL_PYTHON_VERSION"
. ./activate
2020-03-27 05:50:34 +03:00
# pip 20.x+ supports Linux binary wheels
2020-03-25 07:52:23 +03:00
pip install --upgrade pip
2020-04-06 10:19:39 +03:00
#if [ "$INSTALL_PYTHON_VERSION" = "3.8" ]; then
# This remains in case there is a diversion of binary wheels
pip install -i https://hosted.chia.net/simple/ miniupnpc==2.0.2 setproctitle==1.1.10 cbor2==5.0.1
2020-03-28 05:06:16 +03:00
pip install -e .
cd ./electron-ui
npm install
2020-02-07 08:14:54 +03:00
Separate timelord, add Windows/CentOS/AMZN (#62) 1.1.1 release * windows build instructions * install.sh newline fix \n wasn't as cross platform as it should be so reverted to an extra echo * Add CentOS to README.md Full CentOS 7.7 install instructions * mention blspy * confirmed boost 1.67.0 works on Ubuntu * Update README.md. * Fix problem with zip download. * Remove scm warning Revert install instructions due to scm fix * Update README and install scripts to separate timelord installation Do not install VDF server and its dependencies in install.sh, create a separate script install_timelord.sh for that. * Move installation of VDF server dependencies to install_timelord.sh * First and broken attempt at CentOS install * Working CentOS 7.7 install * typos in timelord explanation * Timlord/VDF build instructions Specifics for CentOS and MacOS * Various install tips and tricks * spelling error * Add AMZN linux 2 install * Add AMZN linux 2 timelord install Also clean up base install instructions * Combine TL for AMZN and CentOS * Nits for AMZN and CentOS * CentOS, AMZN timelord paralleling * Fix header layouts * Replace VDF server compilation scripts with Makefile * layout improvements * fast_vdf: Remove unused files * Partial ARM install support * missing l in lib * Fleshed out Windows/WSL installs And verified the method for upgrade to 19.x * Move MacOS install fullnode to bottom * Change to mongo "system-wide" * Add mongo start to WSL * Add actual upgrade for WSL/Ubuntu Co-authored-by: Mariano Sorgente <sorgente711@gmail.com> Co-authored-by: Rostislav Skudnov <skrostislav@gmail.com> Co-authored-by: Richard Kiss <him@richardkiss.com> Co-authored-by: wjblanke <wjb2002@flex.com>
2019-12-25 22:18:07 +03:00
echo ""
echo "Chia blockchain install.sh complete."
echo "For assistance join us on Keybase in the #testnet chat channel"
echo "https://keybase.io/team/chia_network.public"
2020-03-27 20:37:22 +03:00
echo ""
echo "Return to the README.md to start running the Chia blockchain"
echo "https://github.com/Chia-Network/chia-blockchain/blob/master/README.md"
2020-03-28 05:33:58 +03:00
echo "Type '. ./activate' to use Chia"