Bioconductor EdgeR package installing error

Hi! I am running into issue installing EdgeR. I followed exactly as the conductor tutorials:
if (!require("BiocManager", quietly = TRUE))

and here is the error I get:

ld: warning: directory not found for option '-L/opt/R/arm64/gfortran/lib/gcc/aarch64-apple-darwin20.6.0/12.0.1'
ld: warning: directory not found for option '-L/opt/R/arm64/gfortran/lib'
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [] Error 1
ERROR: compilation failed for package ‘edgeR’

  • removing ‘/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/edgeR’

The downloaded source packages are in
Warning message:
In install.packages(...) :
installation of package ‘edgeR’ had non-zero exit status

can anyone help me out????

I don't have a solution, but looks like a problem with installing gfortran on a Mac M1 (actually if you change your topic title you might get more useful help from people who know about Mac, as this is not purely a Bioconductor problem).

A few suggestions which may or may not help:
1/ install Xcode from the Apple store, and gfortran as explained here

2/ If you get the question

Do you want to install from sources the package which needs compilation? (Yes/no/cancel)

answer "no".

3/ Re-ask your question specifically mentioning "gfortran" and "Mac M1" in the title: the Mac experts might not read Bioconductor-related questions.

4/ If all else fails, you could try installing R via Rosetta, to use the Intel versions which should just work. I think. I really don't know much about Macs.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.