Hi Liesl,
It looks like you have a Mac. Can you try:
1. Install homebrew
Open the Terminal app and type:
2. Install Command-Line tools
In the Terminal app type:
> xcode-select --install
3. Install compiler
In the Terminal app type:
> brew install gcc
4. Make a symlink from your gcc version to gcc
In the Terminal app type:
> ln -s gcc-11 gcc
5. Create a makevars file and put the path to libgfortran into FLIBS
In the R console type
> dir.create('~/.R')
> write.table("FLIBS=`gfortran -print-search-dirs | grep '^libraries:' | sed 's|libraries: =||' | sed 's|:| -L|g' | sed 's|^|-L|'`",file='~/.R/Makevars',col.names = FALSE,row.names = FALSE,quote = FALSE)
6. Install SNPRelate
In the R console type:
> install.packages("SNPRelate")
7. Install dartR
In the R console type:
> install.packages("dartR")
Cheers,
Luis