无法安装任何R包
我在Ubuntu 20.04上。R版本4.0.2。 我已经使用R很长时间了,一切都很好。 今天,在尝试安装新软件包时,我遇到以下错误:无法安装任何R包,r,libclang,R,Libclang,我在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(
** 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更新。首先,非常感谢您对这个问题的提示。它实际上是与ctf套件相关的。 执行
grep libctf*
时返回:
ii libctf0:amd64 2.35.1-1ubuntu1
amd64 Compact C Type Format library (runtime, BFD dependency)
所以我试着:
sudo apt-get install libctf-nobfd0
它实际上解决了这个问题。
我设法安装了所有需要的软件包。欢迎使用Stackoverflow。在终端中,
readelf--help
的输出是什么?我想说你的软件构建工具链需要更新。我注意到您的libclang
标记,不知道是否适用。我通常允许GCC
进行构建,除非需要libclang。谢谢你的快速回答!输出为readelf:symbol查找错误:readelf:undefined symbol:ctf_arc_bufopen,版本LIBCTF_1.0
是的,我读了上面的部分。我的意思是,当您打开一个终端并键入readelf--help
,终端中会显示什么作为输出。是的。我在之前的评论中写的这一行正是命令OK、close R或RStudio的输出,因为正如您上面所说,它不是R。打开一个终端,然后尝试您的提示:~$dpkg-l | grep libctf*
,它可能会报告ii libctf-nobfd0:amd64 2.34-6ubuntu1.1 amd64 Compact C类型格式库(运行时,无BFD依赖项)ii libctf0:amd64 2.34-6ubuntu1.1
,或者不报告。对readelf--help执行同样的操作。