I encountered an error when installing the randomForest package on R.
OS: SLES12 SP4
R Version: 3.6.0
Error Message: gfortran -fpic -fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -c rfsub.f -o rfsub.o
make: gfortran: Command not found
/usr/lib64/R/etc/Makeconf:190: recipe for target 'rfsub.o' failed
make: *** [rfsub.o] Error 127
ERROR: compilation failed for package ‘randomForest’
* removing ‘/app/R/x86_64-suse-linux-gnu-library/3.6/randomForest’
The downloaded source packages are in
‘/tmp/RtmpqGRhzU/downloaded_packages’
Warning message:
In install.packages("randomForest") :
installation of package ‘randomForest’ had non-zero exit status