我使用的一个应用程序刚刚更新,它不再在系统上运行。当我尝试运行应用程序时,我会收到错误: error while loading shared libraries: libgfortran.so.4: cannot open shared object file: No such file or directory
我在系统上查看,只有libgfortran.so.3可用。您知道我还应该怎么做下一个版本吗?我应该安装哪个软件包?(我的系统是Ubuntu 16.04)
这是R v3.4.0-2无法在Arch
上找到libgfortran.so.3的逆问题因此,您必须安装包括fortran零件在内的GCC 7,其中包括libgfortran 4。
有答案描述了如何在其他stackexchange网站上做到这一点:
- 答案1
- 答案2
- 答案3
您应该做以下操作以解决问题
sudo add-apt-repository ppa:jonathonf/gcc-7.1
sudo apt-get update
sudo apt-get install gcc-7 g++-7
sudo apt-get install gfortran-7