# Intel Fortran compiler 2024.0.1

**URL:** <https://fortran-lang.discourse.group/t/intel-fortran-compiler-2024-0-1/7001>\
**Category:** Intel\
**Created:** [December 16, 2023, 7:09am UTC](https://fortran-lang.discourse.group/t/intel-fortran-compiler-2024-0-1/7001 "2023-12-16T07:09:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harper](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@Harper](https://fortran-lang.discourse.group/u/Harper)\
**Post date:** [December 16, 2023, 7:09am UTC](https://fortran-lang.discourse.group/t/intel-fortran-compiler-2024-0-1/7001/1 "2023-12-16T07:09:25Z")

</div>

As I wanted to try ifx 2024.0.1, the Intel website said to download  
`l_fortran-compiler_p_2024.0.1.31.sh` but not what to do next. My guess seemed to be wrong. Evidence from my Ubuntu system:

```auto
john@johns-laptop:~$ ls -l l_fortran-compiler_p_2024.0.1*
-rw-rw-r-- 1 john john 19788147 Dec 16 19:48 l_fortran-compiler_p_2024.0.1.31.sh
john@johns-laptop:~$ source l_fortran-compiler_p_2024.0.1.31.sh
bash: source: l_fortran-compiler_p_2024.0.1.31.sh: cannot execute binary file
john@johns-laptop:~$ 

```

Same bad result if I tried again after `source /opt/intel/oneapi/setvars.sh`  
What should I have done?

---

<div class="post-metadata">

**Author:** ![Ali](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/ali/32/751_2.png) [@Ali](https://fortran-lang.discourse.group/u/Ali)\
**Post date:** [December 16, 2023, 8:05am UTC](https://fortran-lang.discourse.group/t/intel-fortran-compiler-2024-0-1/7001/2 "2023-12-16T08:05:40Z")

</div>

try running the following command: `bash l_fortran-compiler_p_2024.0.1.31.sh`, and if necessary, use `sudo`. I have successfully installed it on my Ubuntu system.

---

<div class="post-metadata">

**Author:** ![Harper](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@Harper](https://fortran-lang.discourse.group/u/Harper)\
**Post date:** [December 17, 2023, 4:55am UTC](https://fortran-lang.discourse.group/t/intel-fortran-compiler-2024-0-1/7001/3 "2023-12-17T04:55:21Z")

</div>

Thank you @Ali but I still can’t compile a program with the latest ifx. Evidence:

```auto
john@johns-laptop:~$ cat bin/ifx.1
#!/bin/bash
# compile and run a Fortran program with ifx 2024.0.1
source ~/intel/oneapi/setvars.sh 
compilers="~/intel/oneapi/compiler/latest" # for ifx, ifort
echo "LD_LIBRARY_PATH is" $LD_LIBRARY_PATH
set -x
$compilers/bin/ifx -standard-semantics -static-intel -L/lib/gcc/x86_64-linux-gnu/13 -limf -lgcc -lgcc_s "$@"
./a.out
john@johns-laptop:~$ ./bin/ifx.1 hello.f 

:: initializing oneAPI environment ...
  ifx.1: BASH_VERSION = 5.1.16(1)-release
  args: Using "$@" for setvars.sh arguments: hello.f
:: compiler -- latest
:: debugger -- latest
:: mpi -- latest
:: oneAPI environment initialized ::

LD_LIBRARY_PATH is /home/john/intel/oneapi/mpi/2021.11/opt/mpi/libfabric/lib:/home/john/intel/oneapi/mpi/2021.11/lib:/home/john/intel/oneapi/debugger/2024.0/opt/debugger/lib:/home/john/intel/oneapi/compiler/2024.0/opt/compiler/lib:/home/john/intel/oneapi/compiler/2024.0/lib
+ '~/intel/oneapi/compiler/latest/bin/ifx' -standard-semantics -static-intel -L/lib/gcc/x86_64-linux-gnu/13 -limf -lgcc -lgcc_s hello.f
./bin/ifx.1: line 7: ~/intel/oneapi/compiler/latest/bin/ifx: No such file or directory
+ ./a.out
./bin/ifx.1: line 8: ./a.out: No such file or directory
john@johns-laptop:~$ ls -l ~/intel/oneapi/compiler/latest/bin/ifx
-rwxr-xr-x 1 john john 4177208 Nov 22 18:57 /home/john/intel/oneapi/compiler/latest/bin/ifx

```

What should I do now? I note that installing ifx 2024.0 automatically put the Intel stuff into /opt/intel on Nov 22 but using  
` bash l_fortran-compiler_p_2024.0.1.31.sh`  
put it into ~/intel , and the  
`~/intel/oneapi/compiler/latest/bin/ifx` file was still the Nov 22 one.

---

<div class="post-metadata">

**Author:** ![Ali](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/ali/32/751_2.png) [@Ali](https://fortran-lang.discourse.group/u/Ali)\
**Post date:** [December 17, 2023, 7:53am UTC](https://fortran-lang.discourse.group/t/intel-fortran-compiler-2024-0-1/7001/4 "2023-12-17T07:53:44Z")

</div>

> [@Harper](#):
>
> What should I do now? I note that installing ifx 2024.0 automatically put the Intel stuff into /opt/intel on Nov 22 but using  
> ` bash l_fortran-compiler_p_2024.0.1.31.sh`  
> put it into ~/intel , and the  
> `~/intel/oneapi/compiler/latest/bin/ifx` file was still the Nov 22 one.

During the installation via the GUI, ensure you modify the installation location. The default location is your home directory (`~/intel/oneapi`), but you have to change it to match the latest installation path. If you previously installed version 2024.0 in the `/opt/intel/oneapi` directory, make sure to select the same directory (`/opt/intel/oneapi`) as the installation path for the new update (2024.0.1). you may need to execute the installation using `sudo bash l_fortran-compiler_p_2024.0.1.31.sh`.

---

<div class="post-metadata">

**Author:** ![Harper](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@Harper](https://fortran-lang.discourse.group/u/Harper)\
**Post date:** [December 18, 2023, 3:56am UTC](https://fortran-lang.discourse.group/t/intel-fortran-compiler-2024-0-1/7001/5 "2023-12-18T03:56:34Z")

</div>

Thank you again @Ali. But when I tried what you suggested , hoping for 2024.0.1, the GUI installation said

```auto
Intel(R) Get Started with the Intel(R) Fortran Compiler Classic and Intel(R) 
Fortran Compiler
ID Date Version
767720 11/07/2023 2024.0(latest)

```

which made me suspect I was going to get 2024.0 again.

---

<div class="post-metadata">

**Author:** ![Ali](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/ali/32/751_2.png) [@Ali](https://fortran-lang.discourse.group/u/Ali)\
**Post date:** [December 18, 2023, 6:15pm UTC](https://fortran-lang.discourse.group/t/intel-fortran-compiler-2024-0-1/7001/6 "2023-12-18T18:15:31Z")

</div>

When I execute `sudo bash l_fortran-compiler_p_2024.0.1.31.sh` for the installation, this is the output I receive:

 ![1](https://global.discourse-cdn.com/free1/uploads/fortran_lang/original/2X/a/a54a7dee18996a2d6c8934676f7266a43042ae79.png)

If you want to modify the installation directory, you can adjust it at this stage. In my case, I changed the installation location to match the previous version:

 ![2](https://global.discourse-cdn.com/free1/uploads/fortran_lang/original/2X/8/82f0dcb1bb2b63cf4c800a86233fdecca433fdbf.png)

I’m not sure why it shows `2024.0` for you. Maybe this version is an update from the earlier one, `2024.0`. The new version `2024.0.1` might need the `2024.0` version to work properly. But I’m just guessing!

Once the installation is complete, go to this directory to check for the new compiler:  
`your_installation_location/intel/oneapi/compiler/2024.0/bin`  
Then, execute:  
`./ifx --version`  
This should output:

```shell
ifx (IFX) 2024.0.1 20231122
Copyright (C) 1985-2023 Intel Corporation. All rights reserved.

```
