我正在尝试在 Linux Ubuntu 上安装 R 包 Rmpfr,我收到以下错误消息:
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/usr/local/lib/R/site-library/Rmpfr/libs/Rmpfr.so':
libmpfr.so.4: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted
ERROR: loading failed
我已经知道有人问过类似的问题,但错误消息不同,我已经尝试过这篇文章的建议: In R, using Ubuntu, try to install a lib based on GMP C lib, it won't find GMP ,但我安装了 GMP