ifort: command not found
10,536
You say that after you do this in the terminal, you are able to compile Fortran code:
source /opt/intel/parallel_studio_xe_2016.1.056/compilers_and_libraries_2016/linux/bin/ifortvars.sh intel64
So add it to your .bashrc
file. After that, when you open a new terminal, you should be able to compile.
Related videos on Youtube
Author by
MPejic
Updated on September 18, 2022Comments
-
MPejic almost 2 years
I have downloaded and installed Intel Parallel_Studio_xe_2016_update1. After that I have edited my
.bashrc
file and compiled two programs. After closing the terminal, I have tried to compile again and then I gotifort not found
. My.bashrc
contains:PATH=/opt/intel/parallel_studio_xe_2016.1.056/compilers_and_libraries_2016/linux/bin:$PATH export PATH
If I do:
source /opt/intel/parallel_studio_xe_2016.1.056/compilers_and_libraries_2016/linux/bin/ifortvars.sh intel64
I can compile fortran code. But when I close the terminal, in a new terminal compiling is not available. What's the problem?
-
terdon over 8 yearsWhere is the
ifort
command? Have you opened a new terminal after changing the PATH? -
MPejic over 8 years@terdon ifrotvar.sh is located in directory where path points to.I have not changed a path.
-
terdon over 8 yearsWhat's
ifrotvar.sh
? You only mentionifort
in your question. Please [edit[ and explain exactly what you did, show us the exact commands you used and the exact error message received. -
MPejic over 8 years@terdon ifortvars.sh is used to set environmental variables.More here bgu.ac.il/intel_fortran_docs/compiler_f/main_for/mergedProjects/…
-