- git 报错xcrun: error: invalid acti
- xcrun: error: invalid active dev
- xcrun: error: invalid active dev
- xcrun: error: invalid active dev
- xcrun: error: invalid active dev
- xcrun: error: invalid active dev
- xcrun: error: invalid active dev
- xcrun: error: invalid active dev
- xcrun: error: invalid active dev
- xcrun: error: invalid active dev
mac升级后安装R包报错
> install.packages("~/Downloads/LDheatmap_1.0-6.tar.gz", repos = NULL, type = "source")
* installing *source* package ‘LDheatmap’ ...
** 成功将‘LDheatmap’程序包解包并MD5和检查
** using staged installation
** libs
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
对,就是上面的这个错误,是的Xcode command line tools丢失导致的xcrun: error。
打开终端运行
$ xcode-select --install
xcode-select: note: install requested for command line developer tools
安装
完成
appledeMacBook-Pro-3% xcode-select -v
xcode-select version 2354.
再次安装
> install.packages("~/Downloads/LDheatmap_1.0-6.tar.gz", repos = NULL, type = "source")
* installing *source* package ‘LDheatmap’ ...
** 成功将‘LDheatmap’程序包解包并MD5和检查
** using staged installation
** libs
clang++ -mmacosx-version-min=10.13 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.2/Resources/library/Rcpp/include' -I/usr/local/include -fPIC -Wall -g -O2 -c GT_to_SnpMatrix.cpp -o GT_to_SnpMatrix.o
clang++ -mmacosx-version-min=10.13 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.2/Resources/library/Rcpp/include' -I/usr/local/include -fPIC -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o
clang++ -mmacosx-version-min=10.13 -std=gnu++14 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o LDheatmap.so GT_to_SnpMatrix.o RcppExports.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /Library/Frameworks/R.framework/Versions/4.2/Resources/library/00LOCK-LDheatmap/00new/LDheatmap/libs
** R
** data
** demo
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (LDheatmap)
> library(LDheatmap)
>
网友评论