Last active
December 26, 2019 21:11
-
-
Save fariascl/44b906d5354327829b7328b5eba05e46 to your computer and use it in GitHub Desktop.
Script bash para compilar Chaucha desde el código fuente en Ubuntu/Debian y Fedora
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script Bash para compilar la última versión de la Chauchera (chaucha.cl) | |
# Uso: bash compilar_cha.sh | |
# Puedes darle permiso de ejecución con 'sudo chmod +x compilar_cha.sh', y ejecutarlo con './compilar_cha' (sin comillas) | |
if [ -f /etc/debian_version ]; then | |
echo -e "-> Tu S.O. es Debian/Ubuntu GNU/Linux\nActualizando repositorios..." | |
echo "-> Descargando código fuente de Chaucha..." | |
git clone https://github.com/proyecto-chaucha/chauchera.git chauchera/ | |
echo "-> Instalando lo necesario para iniciar la compilación..." | |
sudo apt-get install -y build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils libboost-all-dev software-properties-common | |
echo "-> Instalando software Bitcoin" | |
sudo add-apt-repository ppa:bitcoin/bitcoin | |
sudo apt-get update | |
sudo apt-get install -y libdb4.8-dev libdb4.8++-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler | |
echo "-> Iniciando compilador..." | |
cd chauchera/ | |
sudo chmod +x autogen.sh | |
./autogen.sh | |
sudo chmod +x configure | |
./configure --disable-tests --disable-bench | |
make | |
exit 0 | |
elif [ -f /etc/fedora-release ]; then | |
echo "-> Tu S.O es Fedora" | |
echo "-> Descargando código fuente de Chaucha..." | |
sudo dnf install git | |
git clone https://github.com/proyecto-chaucha/chauchera.git chauchera2 | |
echo "-> Instalando lo necesario para iniciar la compilación..." | |
sudo dnf install gcc-c++ libtool make autoconf automake openssl-devel libevent-devel boost-devel libdb4-devel libdb4-cxx-devel python3 | |
echo "-> Iniciando compilador..." | |
cd chauchera/ | |
sudo chmod +x autogen.sh | |
./autogen.sh | |
sudo chmod +x configure | |
./configure --disable-tests --disable-bench | |
make | |
exit 0 | |
else | |
echo -e "Tu S.O. no es Debian/Ubuntu ni Fedora\nSaliendo..." | |
exit 0 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment