50 你好,打扰了,想请教一下我是mac版R studio,安装WGCNA总报错,不太看得懂哪里出了问题,麻烦指导一下,急,谢谢!

> install.packages("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) Yes

installing the source package ‘WGCNA’


试开URL’https://cran.rstudio.com/src/contrib/WGCNA_1.69.tar.gz'

Content type 'application/x-gzip' length 1168289 bytes (1.1 MB)

==================================================

downloaded 1.1 MB


* installing *source* package ‘WGCNA’ ...

** 成功将‘WGCNA’程序包解包并MD5和检查

** 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’

Warning in install.packages :

  installation of package ‘WGCNA’ had non-zero exit status


The downloaded source packages are in

‘/private/var/folders/th/ftvhqscn3q39zl6wzjg314nm0000gn/T/Rtmp0mcXuU/downloaded_packages’

请先 登录 后评论

1 个回答

omicsgene - 生物信息
擅长:重测序,遗传进化,转录组,GWAS

R版本是多少?  换个R3.6.2版本试试;

请先 登录 后评论