Problema na instalação do pacote mclust no R no UBUNTU 16.04 - / bin / bash: f95: comando não encontrado

1

Eu tentei instalar o pacote R mclust no Ubuntu 16.04 por:

install.packages("mclust")

Mas eu recebi esse erro.

    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
    
por SirSaleh 30.01.2017 / 11:38

1 resposta

2

Este é um problema com o compilador fortran ( /bin/bash: f95: command not found ): você não o instalou. Você pode instalá-lo usando

sudo apt-get install gfortran
    
por don.joey 30.01.2017 / 11:45