更新了Ubuntu,我重新安装了R,现在如果我试图在我的终端上运行R,我会得到以下错误,我将得到什么问题?
/usr/local/lib/R/bin/exec/R: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory
我尝试了一些仍然无法解析的线程
$ which R
/usr/local/bin/R
$ R --version
/usr/local/lib/R/bin/exec/R: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory
$ dpkg -l "libreadline*"
dpkg-query: no packages found matching .
dpkg-query: no packages found matching –
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=====================-============-============-======================================================
un libreadline-common (no description available)
ii libreadline-dev:amd64 8.0-4 amd64 GNU readline and history libraries, development files
un libreadline-gplv2-dev (no description available)
un libreadline4 (no description available)
un libreadline5 (no description available)
un libreadline5-dev (no description available)
un libreadline6-dev (no description available)
ii libreadline8:amd64 8.0-4 amd64 GNU readline and history libraries, run-time libraries发布于 2021-03-03 16:05:17
为了获得更可重复的结果,我建议删除本地安装的R和
sudo rm /usr/local/bin/R然后从官方存储库安装版本
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install r-base-dev然后通过运行R --version来测试安装。
https://askubuntu.com/questions/1320809
复制相似问题