build.sh: make: not found
adrenow opened this issue · comments
Helllo
I've tried to use build.sh to build bitcracker but it ends up with errors and empty builds directory:
sudo sh build.sh
[sudo] password for *****:
====== Build BitCracker Hash Extractor ======
build.sh: 6: build.sh: make: not found
====== Build BitCracker Recovery Password generator ======
build.sh: 11: build.sh: make: not found
====== Build BitCracker CUDA version ======
build.sh: 16: build.sh: make: not found
====== Build BitCracker OpenCL version ======
build.sh: 21: build.sh: make: not found
====== Executables in build directory ======
whats wrong?
I'm using xubuntu 18,0,4 LTS
Thanks.
Run:
sudo apt update
sudo apt install build-essential
And then try building again.
#!/bin/bash
#
if [[ "$EUID" -ne 0 ]]; then
echo "Sorry, you need to run this as root"
exit
fi
if [ -e /etc/centos-release ]; then
DISTRO="CentOS"
elif [ -e /etc/debian_version ]; then
DISTRO=$( lsb_release -is )
else
echo "Your distribution is not supported (yet)"
exit
fi
if [ "$( systemd-detect-virt )" == "openvz" ]; then
echo "OpenVZ virtualization is not supported"
exit
fi
if [ "$DISTRO" == "Ubuntu" ]; then
apt-get update
apt-get upgrade -y
apt-get dist-upgrade -y
apt-get install build-essential haveged linux-headers-$(uname -r) curl cron screen -y
apt-get autoremove -y
apt-get clean -y
elif [ "$DISTRO" == "Debian" ]; then
apt-get update
apt-get upgrade -y
apt-get dist-upgrade -y
apt-get install build-essential haveged linux-headers-$(uname -r) curl cron screen -y
apt-get autoremove -y
apt-get clean -y
elif [ "$DISTRO" == "CentOS" ]; then
yum update -y
yum install epel-release haveged kernel-devel curl cron screen -y
yum groupinstall 'Development Tools' -y
fi
OR
wget https://raw.githubusercontent.com/LiveChief/Fun-Linux-Scripts/master/Linux-Update.sh
bash Linux-Update.sh
Also, there is no need to use sudo!