unable to install packages after fresh install Ubuntu

Error Information:

Hi everyone,

I am having issues with the installment of packages:
After entering install.packages("packagename") in this case: benchmarkme, but it's the same for other packages,

R happily downloads the package and its dependencies.

But then:

* installing *source* package ‘sys’ ...
** package ‘sys’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
sh: 1: make: not found
Warning in system(cmd) : error in running command
ERROR: compilation failed for package ‘sys’
* removing ‘/home/steven/R/x86_64-pc-linux-gnu-library/4.0/sys’
Warning in install.packages :
  installation of package ‘sys’ had non-zero exit status

and so on for every dependency.

I just migrated to Ubuntu so that probobly has something to do with it.

Does anyone have a clue on what could be the problem?
Thanks!

Steps taken so far -

  • restart Rstudio
  • install the packages from outside of Rstudio
  • searching for answers via google, stack overflow, this community

all without advancement.

System Information:

  • RStudio Edition: Desktop
  • RStudio Version: Version 1.4.1106
  • OS Version: Ubuntu 20.04.2 LTS
  • R Version: 4.0.4

From Troubleshooting Guide: Using RStudio

Very likely, you are missing a system dependency, try installing this from a system terminal.

sudo apt install build-essential

Thank you, kind person! This helped me one step further.

I then encountered another error message which i could luckily decypher better than the one before. I also had to install libssl-dev and then everything went well.