无法安装任何 R 包
Cannot install any R package
我在 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 更新。
首先非常感谢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
果然解决了问题。
我设法安装了所有需要的包。
我在 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 更新。
首先非常感谢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
果然解决了问题。 我设法安装了所有需要的包。