bitcoin-sv.sh 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/bash
  2. cd /home/wareck
  3. if [ -r bitcoin-sv ]
  4. then
  5. cd bitcoin-sv
  6. git pull
  7. else
  8. git clone https://github.com/bitcoin-sv/bitcoin-sv.git
  9. cd bitcoin-sv
  10. fi
  11. sudo apt-get update
  12. sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils -y
  13. sudo apt-get install libboost-all-dev libdb-dev libdb++-dev libminiupnpc-dev libgoogle-perftools-dev libzmq3-dev -y
  14. sudo add-apt-repository ppa:ubuntu-toolchain-r/test
  15. sudo apt update
  16. sudo apt install g++-10 -y
  17. sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 8
  18. sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 8
  19. sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 9
  20. sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 9
  21. sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10
  22. sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10
  23. echo "Choose 10:"
  24. sudo update-alternatives --config gcc
  25. cd depends
  26. make download
  27. make
  28. cd ..
  29. ./autogen.sh
  30. CONFIG_SITE=/home/wareck/bitcoin-sv/depends/x86_64-pc-linux-gnu/share/config.site ./configure --prefix=/home/wareck/bitcoinsv_binary/
  31. make
  32. make install