Hi! I am running into issue installing EdgeR. I followed exactly as the conductor tutorials:
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("edgeR")
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: *** [edgeR.so] Error 1
ERROR: compilation failed for package ‘edgeR’
The downloaded source packages are in
‘/private/var/folders/00/zs4ssqhx6ygfnw5x9xbstz940000gn/T/RtmpC3r6x6/downloaded_packages’
Warning message:
In install.packages(...) :
installation of package ‘edgeR’ had non-zero exit status
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.