简单地说,我的R无法识别我的" libssl.so.1.0.0"安装。 想知道任何人有任何建议。
详情:
我试图安装一个R包" devtools", 但有一个问题。
install.packages("devtools")
...
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/host/somewhere/Jun/Programme/R-3.3.1/lib64/R/library/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 ‘/host/somewhere/Jun/Programme/R-3.3.1/lib64/R/library/git2r’
ERROR: dependency ‘openssl’ is not available for package ‘httr’
* removing ‘/host/somewhere/Jun/Programme/R-3.3.1/lib64/R/library/httr’
ERROR: dependencies ‘httr’, ‘git2r’ are not available for package ‘devtools’
* removing ‘/host/somewhere/Jun/Programme/R-3.3.1/lib64/R/library/devtools’
...
似乎" libssl.so.1.0.0"是必须的。
但是当我检查了哪些" openssl"我正在使用:
$ which openssl
~/.anaconda/bin/openssl
$ ldd ~/.anaconda/bin/openssl
linux-vdso.so.1 => (0x00007fffb0de8000)
libssl.so.1.0.0 => /somewhere/Jun/.anaconda/bin/../lib/libssl.so.1.0.0 (0x00002b0618dca000)
libcrypto.so.1.0.0 => /somewhere/Jun/.anaconda/bin/../lib/libcrypto.so.1.0.0 (0x00002b0619041000)
libdl.so.2 => /lib64/libdl.so.2 (0x0000003cae000000)
libc.so.6 => /lib64/libc.so.6 (0x0000003cad800000)
/lib64/ld-linux-x86-64.so.2 (0x0000003cad400000)
所以在我看来" libssl.so.1.0.0"在那里,问题是R找不到它。 有什么建议可以解决这个问题?
更新
另一个诱惑(在评论中提出42 - &#39的建议)
为" install.packages"添加dependencies=TRUE
命令
install.packages(" devtools",dependencies = TRUE)
1: In install.packages("devtools", dependencies = TRUE) :
installation of package ‘openssl’ had non-zero exit status
2: In install.packages("devtools", dependencies = TRUE) :
installation of package ‘git2r’ had non-zero exit status
3: In install.packages("devtools", dependencies = TRUE) :
installation of package ‘httr’ had non-zero exit status
4: In install.packages("devtools", dependencies = TRUE) :
installation of package ‘covr’ had non-zero exit status
5: In install.packages("devtools", dependencies = TRUE) :
installation of package ‘gmailr’ had non-zero exit status
6: In install.packages("devtools", dependencies = TRUE) :
installation of package ‘devtools’ had non-zero exit status
7: In install.packages("devtools", dependencies = TRUE) :
installation of package ‘lintr’ had non-zero exit status
尝试安装" git2r"第一:
install.packages("git2r",dependencies=TRUE)
** R
** inst
** preparing package for lazy loading
Creating a generic function for ‘summary’ from package ‘base’ in package ‘git2r’
Creating a generic function for ‘diff’ from package ‘base’ in package ‘git2r’
Creating a generic function for ‘merge’ from package ‘base’ in package ‘git2r’
Creating a generic function for ‘plot’ from package ‘graphics’ in package ‘git2r’
Creating a generic function for ‘head’ from package ‘utils’ in package ‘git2r’
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/host/somewhere/Jun/Programme/R-3.3.1/lib64/R/library/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 ‘/host/somewhere/Jun/Programme/R-3.3.1/lib64/R/library/git2r’
The downloaded source packages are in
‘/tmp/Rtmp55IwjF/downloaded_packages’
Warning message:
In install.packages("git2r", dependencies = TRUE) :
installation of package ‘git2r’ had non-zero exit status