When I try to install the package, the following message appears:
Installing 'gmm' ...
Installing package into ‘/home/lucas/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
tentando a URL 'https://cloud.r-project.org/src/contrib/gmm_1.7.tar.gz'
Content type 'application/x-gzip' length 1062903 bytes (1.0 MB)
==================================================
downloaded 1.0 MB
gfortran -fno-optimize-sibling-calls -fpic -g -O2 -ffile-prefix-map=/build/r-base-LhKvHL/r-base-4.2.3=. -fstack-protector-strong -c lambda_met.f -o lambda_met.o
* installing *source* package ‘gmm’ ...
** package ‘gmm’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
/bin/bash: linha 1: gfortran: comando não encontrado
make: *** [/usr/lib/R/etc/Makeconf:192: lambda_met.o] Erro 127
ERROR: compilation failed for package ‘gmm’
* removing ‘/home/lucas/R/x86_64-pc-linux-gnu-library/4.2/gmm’
The downloaded source packages are in
‘/tmp/RtmpInFEOy/downloaded_packages’
✔ Package 'gmm' successfully installed.
Warning message:
In utils::install.packages("gmm", repos = "https://cloud.r-project.org") :
installation of package ‘gmm’ had non-zero exit status
I suppose the problem is related to this part "(as ‘lib’ is unspecified)" so i started the terminal and installed libconfig, but it still didn't work.
Thanks!