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

Cannot use ifort command after update

Wai_Kiat_T_
Beginner
694 Views

I updated my Intel Parallel Studio XE 2016 to Update 2 and I cannot use ifort command in Intel Compiler 16.0 Update 2 Intel(R) 64 Visual Studio 2015. The error message was "'ifort' is not recognized as an internal or external command, operable program or batch file.".

However the ifort command is still working fine in Intel Compiler 16.0 Update 1 Intel(R) 64 Visual Studio 2015.

0 Kudos
1 Solution
Steven_L_Intel1
Employee
694 Views

You indeed have neither Fortran nor C++ there. At this point I suggest uninstaling Update 2 and reinstalling. Pay very careful attention to any warning messages it gives you. At the Summary page where it tells you what will be installed, make sure it says Fortran for 32-bit and 64-bit will be installed.

View solution in original post

0 Kudos
8 Replies
Lorri_M_Intel
Employee
694 Views

I saw your screen captures on stackoverflow.

Is there a chance that when you did the upgrade, that you installed the C-only kit?   Will the "icl" verb work in your command prompts?

Were there any messages when you did the install, including warnings that seemed benign?

When you bring up the Update 2 command prompt, what do you see if you issue the "dir" command?

 

             --Lorri

0 Kudos
Wai_Kiat_T_
Beginner
694 Views

Hi Lorri, thank you for your reply.

  1. I did the upgrade via Intel Software Manager, so I guess I installed C/C++ and Fortran. The verb 'icl' was not working in my command prompt too.
  2. During the installation, everything was going smoothly, I did not recall seeing any warnings or errors.
  3. If I issue the 'dir' command, I see the directories in C:\Program Files (x86)\IntelSWTools

Regards. Wai Kiat.

0 Kudos
Steven_L_Intel1
Employee
694 Views

Please show us the output of the command prompt window after you open it (from the shortcut that is installed in the Start menu.)  Please also show the output of:

dir compilers_and_libraries\windows\bin

0 Kudos
Wai_Kiat_T_
Beginner
694 Views

Hi Steve. Attached figures are the output of the command prompt window (top) and the output of 'dir compilers_and_libraries\windows\bin' (bottom). Please let me know if there is anything wrong. Thank you so much.

Intel0.PNGIntel1.PNG

0 Kudos
Steven_L_Intel1
Employee
695 Views

You indeed have neither Fortran nor C++ there. At this point I suggest uninstaling Update 2 and reinstalling. Pay very careful attention to any warning messages it gives you. At the Summary page where it tells you what will be installed, make sure it says Fortran for 32-bit and 64-bit will be installed.

0 Kudos
Wai_Kiat_T_
Beginner
694 Views

Hi, Steve. Thank you for your reply. My desktop is now running a simulation which will take some times. I will try your suggested method once my PC is available. Cheers, Wai Kiat.

0 Kudos
Wai_Kiat_T_
Beginner
694 Views

Hi, Steve. I did a clean installation by removing Intel Parallel Studio XE 2016 Update 1 & Update 2, then I reinstalled Intel Parallel Studio XE 2016 Update 1 and updated to Update 3. Now I have two versions of command prompts: Update 1 and Update 3 for both x86 and x64, did I update it correctly?

The following is the output of "dir compilers_and_libraries\windows\bin" from Intel Compiler 16.0 Update 3 Intel(R) 64 Visual Studio 2015. I also can invoke the command "ifort" and "icl /c"in this new command prompt.

C:\Program Files (x86)\IntelSWTools>dir compilers_and_libraries\windows\bin
 Volume in drive C has no label.
 Volume Serial Number is F23C-55AB

 Directory of C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\bin

05/06/2016  07:54 PM    <DIR>          .
05/06/2016  07:54 PM    <DIR>          ..
04/16/2016  07:49 AM             4,568 compilervars.bat
04/20/2016  03:35 PM            13,368 compilervars_arch.bat
05/06/2016  07:54 PM    <DIR>          ia32
05/06/2016  07:54 PM    <DIR>          ia32_gfx
04/16/2016  07:49 AM             4,568 iclvars.bat
04/16/2016  07:49 AM             4,568 ifortvars.bat
05/06/2016  07:54 PM    <DIR>          intel64
05/06/2016  07:54 PM    <DIR>          intel64_gfx
05/06/2016  07:54 PM    <DIR>          intel64_ia32
05/06/2016  07:54 PM    <DIR>          intel64_mic
04/16/2016  07:49 AM             1,613 ipsxe-comp-vars.bat
04/16/2016  07:46 AM            67,958 loopprofileviewer.jar
04/16/2016  07:49 AM             1,617 vsshell2010vars_arch.bat
04/16/2016  07:49 AM             2,312 vsshell2013vars_arch.bat
               8 File(s)        100,572 bytes
               8 Dir(s)  55,277,006,848 bytes free

 

0 Kudos
Steven_L_Intel1
Employee
694 Views

It does sound as if it is working for you now and yes, it's normal to have both shortcuts showing.

0 Kudos
Reply