Hello there,
I was just wondering why I am getting the following error when I am trying to install WGCNA in R Studio Version 1.2.1335 R version 3.6. When trying to install I get the error highlighted in bold.
Any help would be greatly appreciated.
Ricardo
if (!requireNamespace("BiocManager", quietly = TRUE)) + install.packages("BiocManager") BiocManager::install("WGCNA", version = "3.9") Bioconductor version 3.9 (BiocManager 1.30.4), R 3.6.0 (2019-04-26) Installing package(s) 'WGCNA' Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘WGCNA’ Do you want to attempt to install these from sources? (Yes/no/cancel) y installing the source package ‘WGCNA’
trying URL 'https://cran.rstudio.com/src/contrib/WGCNA_1.67.tar.gz'
Content type 'application/x-gzip' length 1163525 bytes (1.1 MB)
downloaded 1.1 MB
installing source package ‘WGCNA’ ... * package ‘WGCNA’ successfully unpacked and MD5 sums checked * using staged installation ** libs clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -DWITH_THREADS -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -Wall -g -O2 -c corFunctions-utils.c -o corFunctions-utils.o clang: warning: no such sysroot directory: '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk' [-Wmissing-sysroot] corFunctions-utils.c:16:10: fatal error: 'stdio.h' file not found
include <stdio.h>
^~~~~~~~~
**1 error generated. make: * [corFunctions-utils.o] Error 1 ERROR: compilation failed for package ‘WGCNA’
- removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/WGCNA’**