Run this command to install make and all the packages needed to build your code.
sudo apt-get install build-essential
Answer from JorelC on askubuntu.comBy default sudo is not installed on Debian, but you can install it. First enable su-mode:
su -
Install sudo by running:
apt-get install sudo -y
After that you would need to play around with users and permissions. Give sudo right to your own user.
usermod -aG sudo yourusername
Make sure your sudoers file have sudo group added. Run:
visudo to modify sudoers file
and add following line into it (if it is missing):
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
You need to relogin or reboot device completely for changes to take effect.
su and sudo are two different, but related commands. It is unusual for sudo not to be installed, but it may simply not be in your Path. Try /usr/bin/sudo command.
If indeed sudo is not available, you need as you surmised to use su, but it does not work in the same way as sudo. The simplest way to use it is to simply run:
su -
This will ask you for the root user's password, at which point you should probably apt install sudo, log out of the root shell, and then proceed as normal.
Mind that unlike sudo, which asks you for your password, su will ask you for root's password.