Error : "sh: gfortran: command not found" | Ubuntu 16.04

RBK picture RBK · Feb 25, 2017 · Viewed 7.7k times · Source

I am trying to install package , circular, I get the below error during the installation.

enter image description here

I tried a few option that were suggested in a few posts but it didn't work. I also tried loading other packages such as spatstat and this error doesn't occur while doing that.

Could anyone please assist me in resolving this issue.

Answer

DYZ picture DYZ · Feb 25, 2017

You need a Fortran compiler to compile certain R packages. Install it with:

sudo apt-get install gfortran