Ask Your Question

how do i install ifort?

asked 2014-08-14 01:17:35 -0500

l.mollabashi gravatar image

Dear all, i am a new fedora user and i want to install ifort. help me please.

edit retag flag offensive close merge delete


You have to compile from source, I think...

abadrinath gravatar imageabadrinath ( 2014-08-14 01:21:44 -0500 )edit

Can you please edit your question to provide more information on ifort? There are many entries in the Google search result and one cannot be sure which of these you're referring to. It'll be helpful to know what Fedora version are you using also.

FranciscoD_ gravatar imageFranciscoD_ ( 2014-08-14 01:26:45 -0500 )edit

@hello, that should probably go as an answer. Oh, and please use your votes. That way the question will gain karma and be more visible to other people visiting the forum.

FranciscoD_ gravatar imageFranciscoD_ ( 2014-08-14 01:27:56 -0500 )edit

Thank you. i use fedora 17. i mean fortran compiler.

l.mollabashi gravatar imagel.mollabashi ( 2014-08-14 01:33:35 -0500 )edit

Done! Thanks for the reminder @FransiscoD_. I just want to make sure that is the answer he wants.

abadrinath gravatar imageabadrinath ( 2014-08-14 01:56:12 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-08-14 02:06:48 -0500

abadrinath gravatar image

updated 2014-08-14 02:48:38 -0500

First of all, F17 is extremely out of date (in Fedoran standards), so I recommend upgrading to one of the latest versions of Fedora, 20 or 19. I thought you meant ifort, but IMO, gfortran is better.

yum install gcc-gfortran

This will pull in all dependencies for you! Very convenient, eh?

Building from source

If you want a certain version of gfortran, you're in luck here. Instructions on building from source:

Step 1. Get the source code from one of the mirrors from . I suggest you install the latest version of GCC/Gfortran, which currently is 4.9.1. If you want older versions, they are probably a little buggy, but OK to use. Step 2. I suggest you download the .tar.bz2 version of the program as it is more compressed, less download data. cd into the directory, and execute:

# tar -xvjf gcc-4.x.x.tar.bz2

Step 3. Then, create the directory build or gcc-build.

# mkdir build #or gcc-build

Step 4. Go into the directory you just created.

# cd build

Step 5. Execute:

# ../gcc/configure --prefix=$HOME/mygccbuild --enable-languages=c,fortran && make && make install

Step 6. Enjoy programming with gfortran and GCC!

All right, if you want to install ifort, here are the instructions:


Basically, you need to use their installer to build from source (I think so, at least). It will give you the executables for you, and is simpler than compilation. After compilation, compile using:

# ifort yourcode.f


edit flag offensive delete link more


thanks a lot.

l.mollabashi gravatar imagel.mollabashi ( 2014-08-14 04:27:34 -0500 )edit

now i have another qustion how update the fedora version?

l.mollabashi gravatar imagel.mollabashi ( 2014-08-14 04:43:19 -0500 )edit

Execute this in the terminal: yum --releasever=20 --disableplugin=presto distro-sync. There you go!

abadrinath gravatar imageabadrinath ( 2014-08-14 04:52:17 -0500 )edit

hello and thanks.

l.mollabashi gravatar imagel.mollabashi ( 2014-08-14 04:56:37 -0500 )edit

@hello - there were big changes between F17 and F20, that's not sane unless you've really been paying attention and are aware of how to deal with all of those changes. @l.mollabashi You really should do a fresh install, and read through the installation guide - and existing posts here - if you have trouble along the way.

randomuser gravatar imagerandomuser ( 2014-08-14 11:34:56 -0500 )edit

Question Tools


Asked: 2014-08-14 01:17:35 -0500

Seen: 2,491 times

Last updated: Aug 14 '14