Quote:
Originally Posted by beihaghian
I install intel fortran compiler compilitly but when i type ifort in terminal an error happens ,it tells me comand not found.
|
It means that you've not correctly sourced the aforementioned ifortvars.sh file. In order to do it at each login, you can either put the source command line in your $HOME/.bashrc (user based) or in a script with extension .sh in /etc/profile.d (system based). Example:
Code:
$ su -
Password:
# cd /etc/profile.d
# cat > ifort.sh
source /opt/intel/Compiler/11.1/074/bin/ifortvars.sh ia32
<Ctrl-D>
#
Ctrl-D here is used to terminate the standard input. The parts in grey must be customized according to the real installation path and the CPU architecture. If in doubt, please post the output of the following commands so we can check and tell it for sure:
Code:
find /opt -name ifortvars.sh
uname -a
grep -E "model name|flags" /proc/cpuinfo
Hope this helps.