Error installing WGCNA for R 3.6 in RStudio Version 1.2.1335
1
0
Entering edit mode
rm1238 • 0
@rm1238-19204
Last seen 5.3 years ago

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’**
installation error WGCNA compilation • 1.9k views
ADD COMMENT
0
Entering edit mode
@peter-langfelder-4469
Last seen 14 days ago
United States

You seem to be missing the very basic header files that any standard C compiler should have available. I not a Mac user but the previous warning

clang: warning: no such sysroot directory: '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk' [-Wmissing-sysroot]

may have something to do with it. I would guess that you are pointing clang to a non-existent directory tree. Check your clang installation (and potentially that of all development tools).

ADD COMMENT

Login before adding your answer.

Traffic: 654 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6