【发布时间】: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执行相同操作。