如何安装 gfortran?

use*_*584 20 apt software-installation

我正在尝试gfortran使用这些命令在我的计算机上安装Ubuntu 12.04,

sudo -i
apt-get update
apt-get install gfortran
Run Code Online (Sandbox Code Playgroud)

但我发现程序说“ unable to locate package gfortran”。然后在 Ubuntu 页面上,我发现了一些关于同一问题的问题,我通过了他们的解决方案,但我再次无法安装该gfortran软件包。

谁能告诉我怎么安装?

Bra*_*iam 27

使用sudo apt-get install gfortran应该安装适用于您的系统的最新版本的 gfortran。Madison列出了所有受支持版本可用的所有版本。