【问题标题】:Cannot install any R package无法安装任何 R 包
【发布时间】:2021-05-12 11:46:21
【问题描述】:

我使用的是 Ubuntu 20.04。 R 版本 4.0.2。 我已经使用 R 很长时间了,一切正常。 今天,当尝试安装新软件包时,我收到此错误:

** checking absolute paths in shared objects and dynamic libraries
readelf: symbol lookup error: readelf: undefined symbol: ctf_arc_bufopen, version LIBCTF_1.0
Error in system(paste("readelf -d", shQuote(l)), intern = TRUE) :
  error in running command

我试图删除并重新安装 R 和所有软件包,但现在同样的事情也发生在以前安装的软件包上。所以我认为问题不是由 R 本身引起的。 我最近没有进行任何 R 更新。

【问题讨论】:

  • 欢迎来到 Stackoverflow。 readelf --help 在终端中的输出是什么?我会说您的软件构建工具链需要更新。我注意到您的libclang 标签,不知道ctf-suite 是否适用。除非需要 libclang,否则我通常允许 GCC 进行构建。 HTH
  • 感谢您的快速回答!输出为readelf: symbol lookup error: readelf: undefined symbol: ctf_arc_bufopen, version LIBCTF_1.0
  • 是的,我读过上面的那部分。我的意思是,当您打开终端并输入 readelf --help 时,终端中会显示输出。
  • 是的。我之前在评论中写的那行正是命令的输出
  • 好的,关闭R或RStudio,因为正如你上面所说的,它不是R。打开一个终端,然后尝试your_prompt:~$ dpkg -l | grep libctf*,它可能会报告ii libctf-nobfd0:amd64 2.34-6ubuntu1.1 amd64 Compact C Type Format library (runtime, no BFD dependency) ii libctf0:amd64 2.34-6ubuntu1.1 ,或者不。对readelf --help 执行相同操作。

标签: r libclang


【解决方案1】:

首先,非常感谢Chris 提示问题。它实际上与ctf-suite 相关。 执行grep libctf* 时返回:

ii  libctf0:amd64                                    2.35.1-1ubuntu1
amd64        Compact C Type Format library (runtime, BFD dependency)

所以我尝试了:

sudo apt-get install libctf-nobfd0

它实际上解决了这个问题。 我设法安装了所有需要的软件包。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-07-28
    • 1970-01-01
    • 2021-05-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多