How to install the gfortran
fortran compiler on CentOS 7 Linux?
如何在CentOS 7 Linux上安装gfortran
fortran编译器?
gfortran
on CentOS 7 is provided in the gcc-gfortran
package. You may install it to install gfortran
.
gfortran
在CentOS 7设置在提供gcc-gfortran
包 。 您可以安装它来安装gfortran
。
# yum install gcc-gfortran
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: ftp.cuhk.edu.hk
* epel: ftp.cuhk.edu.hk
* extras: centos.01link.hk
* nux-dextop: li.nux.ro
* updates: ftp.cuhk.edu.hk
Resolving Dependencies
--> Running transaction check
---> Package gcc-gfortran.x86_64 0:4.8.5-11.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
gcc-gfortran x86_64 4.8.5-11.el7 base 6.6 M
Transaction Summary
================================================================================
Install 1 Package
Total download size: 6.6 M
Installed size: 16 M
Is this ok [y/d/N]: y
Downloading packages:
gcc-gfortran-4.8.5-11.el7.x86_64.rpm | 6.6 MB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : gcc-gfortran-4.8.5-11.el7.x86_64 1/1
Verifying : gcc-gfortran-4.8.5-11.el7.x86_64 1/1
Installed:
gcc-gfortran.x86_64 0:4.8.5-11.el7
Complete!
Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。
翻译自: https://www.systutorials.com/how-to-install-gfortran-on-centos-7/