升级到MRAN 3.4.1后,R openair安装失败

时间:2017-09-21 21:27:33

标签: r installation openair

我一直在使用我的Mac上的openair包与Rstudio和MRAN v 3.4一段时间没有问题。我最近升级到MRA v 3.4.1,现在收到以下消息,最终以错误结束。关于如何修理的建议赞赏。

> install_github('davidcarslaw/openair')
Downloading GitHub repo davidcarslaw/openair@master
from URL https://api.github.com/repos/davidcarslaw/openair/zipball/master
Installing openair
'/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL  \
  '/private/var/folders/bv/881_rsvd2kv83c13yywwc_xh0000gn/T/Rtmpz6778s/devtoolscf5234a1e7d/davidcarslaw-openair-b782399'  \
  --library='/Users/gcn/Library/R/3.4/library' --install-tests 

* installing *source* package ‘openair’ ...
** libs
clang-omp++ -fopenmp -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I"/Users/gcn/Library/R/3.4/library/Rcpp/include" -DU_STATIC_IMPLEMENTATION -Wall -mtune=core2 -g -O2 -I/opt/X11/include   -fPIC  -g -O3 -Wall -pedantic -mtune=native -std=c++11 -c cluster.cpp -o cluster.o
clang-omp -fopenmp -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I"/Users/gcn/Library/R/3.4/library/Rcpp/include" -DU_STATIC_IMPLEMENTATION -Wall -mtune=core2 -g -O2 -I/opt/X11/include   -fPIC  -g -O3 -Wall -pedantic -mtune=native  -std=gnu99 -c init.c -o init.o
init.c:26:2: warning: no newline at end of file [-Wnewline-eof]
}
 ^
1 warning generated.
clang-omp++ -fopenmp -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I"/Users/gcn/Library/R/3.4/library/Rcpp/include" -DU_STATIC_IMPLEMENTATION -Wall -mtune=core2 -g -O2 -I/opt/X11/include   -fPIC  -g -O3 -Wall -pedantic -mtune=native -std=c++11 -c rolling.cpp -o rolling.o
clang-omp++ -fopenmp -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/clang4/lib -o openair.so cluster.o init.o rolling.o -framework Accelerate -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0 -L/usr/local/gfortran/lib -lgfortran -lquadmath -lm -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0'
installing to /Users/gcn/Library/R/3.4/library/openair/libs
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/Library/Frameworks/R.framework/Versions/3.4.1-MRO/Resources/library/Matrix/libs/Matrix.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.4.1-MRO/Resources/library/Matrix/libs/Matrix.so, 6): Library not loaded: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.4.1-MRO/Resources/library/Matrix/libs/Matrix.so
  Reason: image not found
ERROR: lazy loading failed for package ‘openair’
* removing ‘/Users/gcn/Library/R/3.4/library/openair’
Installation failed: Command failed (1)

1 个答案:

答案 0 :(得分:0)

卸载所有R版本然后安装MRAN版本3.4.2后,这个问题就消失了。根据MRAN软件支持“你是对的,它是MRO 3.4.1中的一个错误。因为MRO使用Accelerate库进行BLAS和LAPACK操作,所以它不会创建libRblas和libRlapack dylibs;使用这些库的二进制包是目前与MRO不兼容,但默认包类型在MRO 3.4.1中设置为“macbinary-el-capitan”。在即将发布的MRO 3.4.2中已将其更改回原来的“源”。“