【问题标题】:R packages: RCurl and curl packages install failure on LinuxR 包:RCurl 和 curl 包在 Linux 上安装失败
【发布时间】:2016-06-28 14:41:37
【问题描述】:

我希望你能帮助解决我在为 R 安装 RCurl 和 curl 包时遇到的这个问题。

Rd warning: /tmp/RtmpOBkvFC/R.INSTALLd07e6c06faf4/RCurl/man/url.exists.Rd:5: missing file link ‘file.exists’
** building package indices
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/home/majaidi/R/x86_64-redhat-linux-gnu-library/3.1/RCurl/libs/RCurl.so':   
  /lib64/libgssapi_krb5.so.2: symbol krb5int_buf_len, version krb5support_0_MIT not defined in file libkrb5support.so.0 with link time reference
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/majaidi/R/x86_64-redhat-linux-gnu-library/3.1/RCurl’

The downloaded source packages are in
   ‘/tmp/RtmpX6poG4/downloaded_packages’
Warning message:
In install.packages(pkgs = pkgs, lib = lib, repos = repos, ...) :
  installation of package ‘RCurl’ had non-zero exit status` 

【问题讨论】:

    标签: r linux curl rcurl


    【解决方案1】:

    看起来你有不同版本的libcurl。 一种方法可能是以下一种(用于您的控制台):

    wget https://cran.r-project.org/src/contrib/curl_0.9.7.tar.gz
    R CMD INSTALL curl_0.9.7.tar.gz --no-test-load
    ldd /home/majaidi/R/x86_64-redhat-linux-gnu-library/3.1/curl/libs/curl.so
    

    然后您可以使用ldd libcurl.so 来查找所有依赖项和共享库。 也许您会发现一些错误和/或您必须创建一个新的LD_LIBRARY_PATH

    祝你好运!
    J_F

    【讨论】:

    • 感谢您的帮助。 Kerberos 库的冲突版本导致了该问题。设置 LD_LIBRARY_PATH 有助于成功加载包(curl 和 RCurl)
    猜你喜欢
    • 1970-01-01
    • 2021-12-16
    • 2018-12-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-08-09
    相关资源
    最近更新 更多