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

No environment variables have been set by ifortvars.sh, MPICH can't find compiler

Dagmar_Kuntz
Beginner
1,138 Views
Installing FC for Linux finished successfully.

Using ./ifortvars.sh in my bash does work (no error message), but NO environment variables have been set.
Therefore command ifort does not work.

I set PATH, LD_LIBRARY_PATH, .bashrc and the symblic link /usr/bin/ifort by hand now.
For installing MPICH: FC=ifort and F90=ifort

But MPICH can't find the Compiler.

Which environment variables are missing ?
0 Kudos
1 Solution
TimP
Honored Contributor III
1,138 Views
You can't compile in the ifort installation directory, nor install ifort in your bash login directory, so ./ifortvars.sh doesn't make sense. Besides, the script has to be 'source'd. In a default installation, it would be something like 'source /opt/intel/Compiler/11.1/059/bin/ifortvars.sh intel64' (supposing you installed the 64-bit compiler). If you bypass the script and set only some of the environment variables, it's not up to us to guess what you skipped, without even a quotation of the specific problem you met.

View solution in original post

0 Kudos
2 Replies
TimP
Honored Contributor III
1,139 Views
You can't compile in the ifort installation directory, nor install ifort in your bash login directory, so ./ifortvars.sh doesn't make sense. Besides, the script has to be 'source'd. In a default installation, it would be something like 'source /opt/intel/Compiler/11.1/059/bin/ifortvars.sh intel64' (supposing you installed the 64-bit compiler). If you bypass the script and set only some of the environment variables, it's not up to us to guess what you skipped, without even a quotation of the specific problem you met.
0 Kudos
Dagmar_Kuntz
Beginner
1,138 Views
Quoting - tim18
You can't compile in the ifort installation directory, nor install ifort in your bash login directory, so ./ifortvars.sh doesn't make sense. Besides, the script has to be 'source'd. In a default installation, it would be something like 'source /opt/intel/Compiler/11.1/059/bin/ifortvars.sh intel64' (supposing you installed the 64-bit compiler). If you bypass the script and set only some of the environment variables, it's not up to us to guess what you skipped, without even a quotation of the specific problem you met.

Thanx for your answer. I source'd the script, which solved my problem.
0 Kudos
Reply