Unable to install package - gfortran not found

November 6, 2019 @packageinstall Dexter Koh

@packageinstall wrote:

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

Posts: 4

Participants: 2

Read full topic

Previous Article
Issues and questions about renv
Issues and questions about renv

@statquant_2 wrote: Hello, I was giving a test at renv today. I might be expecti...

Next Article
Bypass RStudio server login
Bypass RStudio server login

@jafarre wrote: Hello, In my RStudio (open source) installation, for some arcane...