0

一段时间以来,我一直在我的 Mac 上使用带有 Rstudio 和 MRAN v 3.4 的 openair 包,没有任何问题。我最近升级到 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)
4

1 回答 1

0

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

于 2017-10-31T16:30:04.217 回答