
This makes the procedure unsafe when called recursively, or concurrently from multiple threads. Warning: Array ‘cov’ at (1) is larger than limit set by ‘-fmax-stack-var-size=’, moved from stack to static storage. Warning: Possible change of value in conversion from REAL(8) to INTEGER(4) at (1) ġ155 | K = MOD( C(NP, MIN(NDIM-1,KLIM-1))*DBLE(K), DBLE(P(NP)) )ĩ4 | DOUBLE PRECISION COV(NL*(NL+1)/2), A(NL), B(NL), DL(NL), Y(NL) Then, I restart R and try again: > install.packages("mvtnorm") So, I just move gfortran from where it is to where R wants it to be: gfortran % sudo mv /usr/local/bin/gfortran gfortran % I believe the key line is: make: /opt/R/arm64/bin/gfortran: No such file or directory where it is looking in the wrong location for gfortran.Ĭonfirming it is not there: ~ % cd arm64 % ls -laĭrwxrwxr-x 8 root wheel 256 Oct 18 11:04. ‘/private/var/folders/fx/f46lfqf56_df59fvzgqhcbyr0000gn/T/RtmpfGZUAF/downloaded_packages’ Installation of package ‘mvtnorm’ had non-zero exit status * removing ‘/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/mvtnorm’ Make: /opt/R/arm64/bin/gfortran: No such file or directoryĮRROR: compilation failed for package ‘mvtnorm’ opt/R/arm64/bin/gfortran -mtune=native -fno-optimize-sibling-calls -fPIC -Wall -g -O2 -c mvt.f -o mvt.o ** package ‘mvtnorm’ successfully unpacked and MD5 sums checkedĬlang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c C_FORTRAN_interface.c -o C_FORTRAN_interface.oĬlang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c miwa.c -o miwa.o There is a binary version available but the source version is later:ĭo you want to install from sources the package which needs compilation? (Yes/no/cancel) YesĬontent type 'application/x-gzip' length 166421 bytes (162 KB) I am able to successfully install and run R-but installing some packages is giving me trouble: > install.packages("mvtnorm")


I have Xtools and gfortran for the Apple M1 installed: ~ % which ~ % which gfortran I'm on a MacBook Air with an Apple M1 chip, using macOS 11.6 Big Sur.
