Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
27088 Discussions

The Fortran compiler (ifort.exe) cannot be found

SL93
Beginner
682 Views

Hi, I just downloaded and installed the oneAPI base toolkit and after that I did the same for the HPC toolkit. Everything was installed correctly. But once I tried to open a sample code and compile it I got the error that the fortran compiler cannot be found. I tried to open the Intel one API command prompt for Intel 64 for Visual Studio 2019 and as you can see from the image I uploaded the ifort command is there. Can someone please help me? 

 

fort.png

Labels (1)
0 Kudos
1 Solution
JohnNichols
Valued Contributor II
586 Views

You show the ifort running, but you have to give it file names to run on.  

ifort myfile.for etc.....  you will need to look up the syntax. 

View solution in original post

3 Replies
Steve_Lionel
Black Belt Retired Employee
651 Views

It would help if you instead showed us the complete session where ifort could not be found. Did you use the same shortcut to start the session? You must do that, or invoke the setvars.bat script in your own build script, to establish the environment properly.

Barbara_P_Intel
Moderator
606 Views

@SL93  Are you able to use the Fortran compiler now?

 

JohnNichols
Valued Contributor II
587 Views

You show the ifort running, but you have to give it file names to run on.  

ifort myfile.for etc.....  you will need to look up the syntax. 

Reply