I got the following two errors when installing.
1.make failedNo such file or directory - make 2.make: gcc: No such file or directory
The following command solved my problem:
sudo apt install -y make gcc