結果如下,請問大神們如何解決呢?謝謝
> source("https://bioconductor.org/biocLite.R")
Error: With R version 3.5 or greater, install Bioconductor packages using BiocManager; see https://bioconductor.org/install
> if (!requireNamespace("BiocManager", quietly = TRUE))
+ install.packages("BiocManager")
> BiocManager::install("rhdf5")
Bioconductor version 3.11 (BiocManager 1.30.10), R 4.0.2 (2020-06-22)
Installing package(s) 'rhdf5'
trying URL 'https://bioconductor.org/packages/3.11/bioc/bin/macosx/contrib/4.0/rhdf5_2.32.2.tgz'
Content type 'application/x-gzip' length 2434821 bytes (2.3 MB)
==================================================
downloaded 2.3 MB
The downloaded binary packages are in
/var/folders/fk/kn3g1qz55h9gl4x29h85w5100000gn/T//RtmpzkwacZ/downloaded_packages
Old packages: 'MASS', 'mgcv'
Update all/some/none? [a/s/n]:
a
There are binary versions available but the source versions are later:
binary source needs_compilation
MASS 7.3-51.6 7.3-52 TRUE
mgcv 1.8-31 1.8-32 TRUE
Do you want to install from sources the packages which need compilation? (Yes/no/cancel) Yes
installing the source packages ‘MASS’, ‘mgcv’
trying URL 'https://cran.rstudio.com/src/contrib/MASS_7.3-52.tar.gz'
Content type 'application/x-gzip' length 494809 bytes (483 KB)
==================================================
downloaded 483 KB
trying URL 'https://cran.rstudio.com/src/contrib/mgcv_1.8-32.tar.gz'
Content type 'application/x-gzip' length 1004383 bytes (980 KB)
==================================================
downloaded 980 KB
* installing *source* package ‘MASS’ ...
** package ‘MASS’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘MASS’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/MASS’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/MASS’
* installing *source* package ‘mgcv’ ...
** package ‘mgcv’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘mgcv’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/mgcv’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/mgcv’
The downloaded source packages are in
‘/private/var/folders/fk/kn3g1qz55h9gl4x29h85w5100000gn/T/RtmpzkwacZ/downloaded_packages’
Warning messages:
1: In install.packages(update[instlib == l, "Package"], l, repos = repos, :
installation of package ‘MASS’ had non-zero exit status
2: In install.packages(update[instlib == l, "Package"], l, repos = repos, :
installation of package ‘mgcv’ had non-zero exit status
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/13301.html
標籤:其他開發語言
下一篇:MSQL資料庫的編碼格式
