To quote from the page you downloaded R from: This release uses Xcode 14.2/14.3 and GNU Fortran 12.2. If you wish to compile R packages which contain Fortran code, you may need to download the corresponding GNU Fortran compiler from https://mac.R-project.org/tools.
> On Jul 6, 2023, at 11:50 AM, Spencer Graves > <spencer.gra...@effectivedefense.org> wrote: > > Hello: > > > "R CMD build KFAS" under macOS 11.7.8 stopped with: > > > using C compiler: ‘Apple clang version 12.0.5 (clang-1205.0.22.9)’ > sh: gfortran: command not found > using SDK: ‘MacOSX11.3.sdk’ > gfortran -arch x86_64 -fPIC -Wall -g -O2 -c approx.f90 -o approx.o > make: gfortran: No such file or directory > make: *** [approx.o] Error 1 > ERROR: compilation failed for package ‘KFAS' > > > My web search suggests several different ways to fix this problem, > but I don't know which to try. > > > > Suggestions? > Thanks, > Spencer Graves > > > p.s. I have both "brew" and "port" installed. I recently used "port" to > upgrade another software package. A web search suggested the following: > > > sudo port install gcc48 > sudo port select -set gcc mp-gcc48 > > > However, this comment was posted roughly 9 years ago. Below please > find sessionInfo(). > > > sessionInfo() > R version 4.3.1 (2023-06-16) > Platform: x86_64-apple-darwin20 (64-bit) > Running under: macOS Big Sur 11.7.8 > > Matrix products: default > BLAS: > /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib > > LAPACK: > /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/lib/libRlapack.dylib; > LAPACK version 3.11.0 > > locale: > [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 > > time zone: America/Chicago > tzcode source: internal > > attached base packages: > [1] stats graphics grDevices utils datasets methods base > > loaded via a namespace (and not attached): > [1] compiler_4.3.1 R6_2.5.1 magrittr_2.0.3 cli_3.6.1 > [5] tools_4.3.1 glue_1.6.2 rstudioapi_0.14 roxygen2_7.2.3 > [9] xml2_1.3.4 vctrs_0.6.2 stringi_1.7.12 knitr_1.42 > [13] xfun_0.39 stringr_1.5.0 lifecycle_1.0.3 rlang_1.1.1 > [17] purrr_1.0.1 > > ______________________________________________ > R-package-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-package-devel > ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel