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

setting the paths for MKL library and ifort compiler

OSCAR_M_1
Beginner
712 Views

Hi everybody

I downloaded the MKL package from this link https://software.intel.com/en-us/articles/free_mkl and installed it successfully. Now, I would like to run some examples included in the folder /mkl/examples but obviously I need the ifort compiler. I guess that the ifort compiler is included in some of the folders within the main folder, but I don't know how to set the environment variables for ifort in the .bashrc file. I added the following lines

# add the intel compilers to the PATH
export PATH=/home/oscar/tmp/psxe_staging_area/bin:$PATH

# add MKL and the compiler libs to the path
export LD_LIBRARY_PATH=/home/oscar/tmp/psxe_staging_area/mkl/lib/intel64/:$$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/home/oscar/tmp/psxe_staging_area/lib/intel64/:$LD_LIBRARY_PATH

and updated the file, but, when I use the ifort command in the terminal I still get

ifort: command not found

Am I missing something? I will really appreciate if someone could give me some insight on the problem at hand. Thank you in advance for your help.

0 Kudos
1 Reply
Steven_L_Intel1
Employee
712 Views

No compilers are provided in that free libraries package. It is libraries only and assumes you already have a compiler.

If you are a student or open-source developer you may qualify for a free compiler license. See https://software.intel.com/en-us/qualify-for-free-software

0 Kudos
Reply