How to install libgfortran.so.4 on ubuntu 16.06

限于喜欢 提交于 2019-12-22 04:46:26

问题


An app I use just updated and it no longer runs on my system. When I try to run the application I get the error: error while loading shared libraries: libgfortran.so.4: cannot open shared object file: No such file or directory

I looked on my system and only libgfortran.so.3 is available. Do you know what should I do to have the next version also? Which package should I install? (my system is ubuntu 16.04)


回答1:


This is an inverse problem to R v3.4.0-2 unable to find libgfortran.so.3 on Arch

So you must install GCC 7 including the Fortran part, that includes libgfortran 4.

There are answers describing how to do that at other StackExchange sites:

  • Answer 1
  • Answer 2
  • Answer 3



回答2:


You should do the following for solving the problem

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


来源:https://stackoverflow.com/questions/46516394/how-to-install-libgfortran-so-4-on-ubuntu-16-06

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!