Installing Python and Fortran

Posted on

I signed up for a Red Hat Developer Subscription for Individuals to setup a test server with the Python and Fortran compilers. I followed the instructions here to install python 3.8 with no issues:

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_basic_system_settings/assembly_installing-and-using-python_configuring-basic-system-settings#proc_installing-python-3_assembly_installing-and-using-python

I searched for technotes on installing Fortran which led me here:

https://access.redhat.com/documentation/en-us/red_hat_developer_toolset/11/html/user_guide/chap-gcc#sect-GCC-Fortran

That technote eventually led me to another one about getting access to the Red Hat Developer Toolset but the article does not mention RHEL8 and when I try to install it via "yum install devtoolset-11" I get the error "Error: unable to find match: devtoolset-11"

I eventually found another article (https://fortran-lang.org/learn/os_setup/install_gfortran) which said to run "yum install gcc-gfortran" which installed the GNU Fortran (GCC) 8.5.0 compiler.

I found one more document (https://www.redhat.com/files/summit/session-assets/2019/TE92A9.pdf page 7) which I did not try but it says to run "yum install gfortran". What is the best way to install a Fortran compiler?

-Mike

Responses