# Downloading Intel FTN compiler

**URL:** <https://fortran-lang.discourse.group/t/downloading-intel-ftn-compiler/5612>\
**Category:** Uncategorized\
**Created:** [April 20, 2023, 3:03pm UTC](https://fortran-lang.discourse.group/t/downloading-intel-ftn-compiler/5612 "2023-04-20T15:03:36Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/patrick/32/3170_2.png) [@Patrick](https://fortran-lang.discourse.group/u/Patrick)\
**Post date:** [April 20, 2023, 3:03pm UTC](https://fortran-lang.discourse.group/t/downloading-intel-ftn-compiler/5612/1 "2023-04-20T15:03:36Z")

</div>

Attempting to download the Intel Fortran compiler: first I read that there is ifort an ifx : do these two mysterious words refer to different compilers? Then I bump against a message saying the compiler will not work if Visual Studio isn’t installed. (How godly would it be if decision trees were to be used!) However, I also read that the Intel compiler can be employed from the command line. (Now this really spins my head.) **How do I obtain the Intel Fortran compiler that will be operable from the command line?**

---

<div class="post-metadata">

**Author:** ![hkvzjal](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/hkvzjal/32/3055_2.png) [@hkvzjal](https://fortran-lang.discourse.group/u/hkvzjal)\
**Post date:** [April 20, 2023, 3:17pm UTC](https://fortran-lang.discourse.group/t/downloading-intel-ftn-compiler/5612/2 "2023-04-20T15:17:46Z")

</div>

Hi @Patrick  
You have to download the intel oneAPI base tool kit and then the HPC tool kit, both links are here [Intel Fortran compiler in Fortran Wiki](https://fortranwiki.org/fortran/show/Intel+Fortran+compiler)

during installation it will warn you if MVS is not installed, but you should be able to skip that and continue, should it force it, you can install MVS2022 community edition and you should be good to go… must likely the issue is that ifort needs the linker from MVS, but ifx can work independently…

After installing the HPC tool kit that will provide both ifort (the classic compiler) and ifx (the new compiler based on LLVM)

In order to use them from command line you have to set locally the environment variables:

> call “C:\Program Files (x86)\Intel\oneAPI\compiler\2023.0.0\env\vars.bat” intel64  
> ifort  
> ifx

The first line sets everything, the other two just to prompt the information of the compiler version  
From here on you should be able of compiling and running single files, for more complex projects you will need either CMake or fpm

---

<div class="post-metadata">

**Author:** ![FortranFan](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@FortranFan](https://fortran-lang.discourse.group/u/FortranFan)\
**Post date:** [April 20, 2023, 3:51pm UTC](https://fortran-lang.discourse.group/t/downloading-intel-ftn-compiler/5612/3 "2023-04-20T15:51:15Z")

</div>

> [@hkvzjal](#):
>
> You have to download the intel oneAPI base tool kit and then the HPC tool kit, both links are here [Intel Fortran compiler in Fortran Wiki](https://fortranwiki.org/fortran/show/Intel+Fortran+compiler)

@hkvzjal ,

Please take a look at this [**page**](https://community.intel.com/t5/Intel-Fortran-Compiler/The-Easy-and-Fast-Way-to-Install-JUST-Fortran-with-Intel-oneAPI/td-p/1360571) authored by @greenrongreen at Intel.

A quick glance at your Fortran Wiki suggests either that the Fortran Wiki page is superfluous; or if at all, such a page should exist at Fortran Wiki, it should merely point to Intel’s site link(s) and **not** add anything further.

Your instructions to install the oneAPI Base toolkit appears unnecessary, for example, for most Fortranners.

---

<div class="post-metadata">

**Author:** ![Patrick](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/patrick/32/3170_2.png) [@Patrick](https://fortran-lang.discourse.group/u/Patrick)\
**Post date:** [April 21, 2023, 10:10am UTC](https://fortran-lang.discourse.group/t/downloading-intel-ftn-compiler/5612/4 "2023-04-21T10:10:15Z")

</div>

> [@hkvzjal](#):
>
> call “C:\Program Files (x86)\Intel\oneAPI\compiler\2023.0.0\env\vars.bat” intel64

```auto
C:\>call "C:\Program Files (x86)\Intel\oneAPI\compiler\2023.1.0\env\vars.bat" intel64
:: WARNING: Visual Studio was not found in the standard installation location:
   "C:\Program Files\Microsoft Visual Studio\<Year>\<Edition>" or
   "C:\Program Files (x86)\Microsoft Visual Studio\<Year>\<Edition>"
   Set the VS2017INSTALLDIR or VS2019INSTALLDIR or VS2022INSTALLDIR
   environment variable to point to your install location and try again.

```

Now what do I do?

---

<div class="post-metadata">

**Author:** ![mecej4](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/mecej4/32/855_2.png) [@mecej4](https://fortran-lang.discourse.group/u/mecej4)\
**Post date:** [April 21, 2023, 1:44pm UTC](https://fortran-lang.discourse.group/t/downloading-intel-ftn-compiler/5612/5 "2023-04-21T13:44:19Z")

</div>

I replied in your [other thread](https://fortran-lang.discourse.group/t/problem-using-intel-compiler/5632).

---

<div class="post-metadata">

**Author:** ![mecej4](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/mecej4/32/855_2.png) [@mecej4](https://fortran-lang.discourse.group/u/mecej4)\
**Post date:** [April 21, 2023, 1:07pm UTC](https://fortran-lang.discourse.group/t/downloading-intel-ftn-compiler/5612/6 "2023-04-21T13:07:56Z")

</div>

For Intel Fortran to work at all, [it is required](https://www.intel.com/content/www/us/en/developer/articles/system-requirements/oneapi-fortran-compiler-system-requirements.html) that you have enough components of Visual C++/Studio installed that you can compile, link and run a C or C++ program, such as the classic C “Hello World” program. Even if you choose not to make use of the Visual Studio IDE, the presence of the VC Windows Desktop components is a hard requirement.

---

<div class="post-metadata">

**Author:** ![Patrick](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/patrick/32/3170_2.png) [@Patrick](https://fortran-lang.discourse.group/u/Patrick)\
**Post date:** [April 21, 2023, 2:07pm UTC](https://fortran-lang.discourse.group/t/downloading-intel-ftn-compiler/5612/7 "2023-04-21T14:07:01Z")

</div>

Then, bye bye Intel!

---

<div class="post-metadata">

**Author:** ![RonShepard](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@RonShepard](https://fortran-lang.discourse.group/u/RonShepard)\
**Post date:** [April 21, 2023, 3:16pm UTC](https://fortran-lang.discourse.group/t/downloading-intel-ftn-compiler/5612/8 "2023-04-21T15:16:33Z")

</div>

The same is going to be true for gfortran. One installs gfortran by installing gcc.

---

<div class="post-metadata">

**Author:** ![Patrick](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/patrick/32/3170_2.png) [@Patrick](https://fortran-lang.discourse.group/u/Patrick)\
**Post date:** [April 21, 2023, 5:12pm UTC](https://fortran-lang.discourse.group/t/downloading-intel-ftn-compiler/5612/9 "2023-04-21T17:12:08Z")

</div>

I am sticking to Gfortran. There were things I could have done via the intel compiler, but I will shelve that perspective.

---

<div class="post-metadata">

**Author:** ![lars](https://avatars.discourse-cdn.com/v4/letter/l/74df32/32.png) [@lars](https://fortran-lang.discourse.group/u/lars)\
**Post date:** [April 23, 2023, 5:07pm UTC](https://fortran-lang.discourse.group/t/downloading-intel-ftn-compiler/5612/10 "2023-04-23T17:07:14Z")

</div>

You can also just download the standalone version/installer, if you want to avoid accidently installing unneeded tools.

> **[Intel® oneAPI standalone component installation files](https://www.intel.com/content/www/us/en/developer/articles/tool/oneapi-standalone-components.html#inpage-nav-6-1)**
>
> Intel® oneAPI standalone component installation files

---

<div class="post-metadata">

**Author:** ![Patrick](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/patrick/32/3170_2.png) [@Patrick](https://fortran-lang.discourse.group/u/Patrick)\
**Post date:** [April 23, 2023, 5:51pm UTC](https://fortran-lang.discourse.group/t/downloading-intel-ftn-compiler/5612/11 "2023-04-23T17:51:10Z")

</div>

HI had to un-install the compiler I had downloaded from Intel, bbecause I did not have the required VS on board.
