Hello there, also a newbie here.
So far, all pages I found about this subject recommend editing your .basrc file. Here are some other references:
https://software.intel.com/en-us/art...x-with-ubuntu/
https://software.intel.com/en-us/forums/topic/277289
I have tried many things, like adding all of these at the end of my .bashrc file, all failures:
Code:
source /opt/intel/composer_xe_2015.3.187/bin/intel64/ifortvars.sh intel64
Code:
source ~/opt/intel/composer_xe_2015.3.187/bin/ifortvars.sh intel64
Code:
source /root/opt/intel/composer_xe_2015.3.187/bin/intel64/ifortvars.sh intel64
The last one actually messed up my terminal, don't recommend it (when you start the terminal, you're not a superuser yet, so you don't have permission to access root, and it goes wrong, apparently).
The change that made a difference was actually this one:
Code:
PATH="/opt/intel/composer_xe_2015.3.187/bin/intel64:$PATH"
export PATH
LD_LIBRARY_PATH="/opt/intel/composer_xe_2015.3.187/compiler/lib/intel64:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH
After that, this is the kind of response I get from the terminal:
Code:
leonardo@Leonardo-linux:~$ which ifort
/opt/intel/composer_xe_2015.3.187/bin/intel64/ifort
leonardo@Leonardo-linux:~$ ifort -v
ifort version 15.0.3
leonardo@Leonardo-linux:~$ ifort
ifort: command line error: no files specified; for help type "ifort -help"
So it seems that things are OK, but they're not.
When I try this other command, this is what comes out of the terminal:
Code:
leonardo@Leonardo-linux:~/lib$ sudo make -f makefile
ifort -c -O2 -m64 -mcmodel=medium -fconvert=little-endian -frecord-marker=4 -I/lib/src/grib_api-1.13.1/include erf.f90
/bin/bash: ifort: command not found
make: *** [erf.o] Error 127
Can someone help me? I have attached the code for the makefile makefile.odt.
Bookmarks