J'ai essayé d'installer le paquet R mclust
dans Ubuntu 16.04 par ceci:
install.packages("mclust")
Mais j'ai eu cette erreur.
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
trying URL 'http://cran.um.ac.ir/src/contrib/mclust_5.2.2.tar.gz'
Content type 'application/x-gzip' length 2749972 bytes (2.6 MB)
==================================================
downloaded 2.6 MB
* installing *source* package ‘mclust’ ...
** package ‘mclust’ successfully unpacked and MD5 sums checked
** libs
f95 -fpic -g -O2 -c mclust.f -o mclust.o
/bin/bash: f95: command not found
/usr/local/lib/R/etc/Makeconf:155: recipe for target 'mclust.o' failed
make: *** [mclust.o] Error 127
ERROR: compilation failed for package ‘mclust’
* removing ‘/usr/local/lib/R/site-library/mclust’
The downloaded source packages are in
‘/tmp/Rtmpd4PnFn/downloaded_packages’
Warning message:
In install.packages("mclust") :
installation of package ‘mclust’ had non-zero exit status
C'est un problème avec le compilateur fortran (/bin/bash: f95: command not found
): vous ne l'avez pas installé. Vous pouvez l'installer en utilisant
Sudo apt-get install gfortran