为什么git2r无法安装?

时间:2018-09-27 22:43:22

标签: r devtools libssh2 libssl

当我尝试通过Red Hat Linux机器上的RStudio Server在R中安装devtools时,由于无法安装git2r而失败。然后,当我尝试安装git2r时,它无法安装。

我认为可能是因为我需要根据以下警告在Linux机器上安装libssh2。那是对的吗?如果是这样,可以使用Linux命令行中的yum install libssh2-devel进行更正,对吗?不幸的是,我正在等待管理员给我sudo特权,所以我还不能检验该假设。

configure: WARNING:
  ---------------------------------------------
   Unable to find the LibSSH2 library on this
   system. Building a version without support
   for SSH transport.

   To build with SSH support, please install:
     libssh2-1-dev (package on e.g. Debian and Ubuntu)
     libssh2-devel (package on e.g. Fedora, CentOS and RHEL)
     libssh2 (Homebrew package on OS X)
   and try again.

   If the LibSSH2 library is installed on
   your system but the git2r configuration
   is unable to find it, you can specify
   the include and lib path to LibSSH2 with:
   R CMD INSTALL git2r --configure-vars='LIBS=-L/path/to/libs CPPFLAGS=-I/path/to/headers'
  ---------------------------------------------

在失败的安装输出的末尾还会出现一条警告,提示libssl。这与libssh2有关还是一个单独的问题?如果分开,我该如何解决?我应该安装libssl库吗?

Error: package or namespace load failed for ‘git2r’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/home/jp7663/R/x86_64-redhat-linux-gnu-library/3.4/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/jp7663/R/x86_64-redhat-linux-gnu-library/3.4/git2r’
Warning in install.packages :
  installation of package ‘git2r’ had non-zero exit status

0 个答案:

没有答案