我既不能在R中安装 devtools ,也不能安装其依赖项 git2r 。
** testing if installed package can be loaded
Error: package or namespace load failed for ‘git2r’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/martin/R/x86_64-redhat-linux-gnu-library/3.5/git2r/libs/git2r.so':
libssl.so.1.0.0: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/martin/R/x86_64-redhat-linux-gnu-library/3.5/git2r’
ERROR: dependency ‘git2r’ is not available for package ‘devtools’
* removing ‘/home/martin/R/x86_64-redhat-linux-gnu-library/3.5/devtools’
The downloaded source packages are in
‘/tmp/Rtmpd4MzAR/downloaded_packages’
Warning messages:
1: In install.packages("devtools", repos = "https://cran.uni-muenster.de/") :
installation of package ‘git2r’ had non-zero exit status
2: In install.packages("devtools", repos = "https://cran.uni-muenster.de/") :
installation of package ‘devtools’ had non-zero exit status
我已经为Fedora 27安装了系统软件包:
安装问题可能是什么原因?
其他信息:
> sessionInfo()
R version 3.5.0 (2018-04-23)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: Fedora 27 (Cloud Edition)
Matrix products: default
BLAS/LAPACK: /usr/lib64/R/lib/libRblas.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.5.0 tools_3.5.0