DEV Community

Ranit D. A.
Ranit D. A.

Posted on

Solving 'mvtnorm' R Package installation error Ubuntu 22.04 or Later

/bin/bash: line 1: gfortran: command not found
make: *** [/usr/lib/R/etc/Makeconf:192: mvt.o] Error 127
ERROR: compilation failed for package ‘mvtnorm’

  • removing ‘/home/ranit/R/x86_64-pc-linux-gnu-library/4.2/mvtnorm’ Warning in install.packages : installation of package ‘mvtnorm’ had non-zero exit status The downloaded source packages are in ‘/tmp/RtmpQwQ3lR/downloaded_packages’

Solution is run the command below to install gfortran in your

sudo apt install gfortran

and then run

install.packages("mvtnorm")

I hope that helps. Thanks <3

Top comments (0)