- View the source.
- View the history.
- IntelFortran and MKL Installation (Open) has been deleted.
- The added line is THIS COLOR.
- The deleted line is THIS COLOR.
[by Eguchi and Nugraha, 2009.4.28]
This is an explanation of installing Intel Fortran Compiler and Math Kernel Library (MKL) for a personal Linux computer.
** Get the installer [#n57b0abf]
-Links to intel website:
--[[Intel Fortran Compiler:https://registrationcenter.intel.com/RegCenter/AutoGen.aspx?ProductID=1174&AccountID=&EmailID=&ProgramID=&RequestDt=&rm=NCOM&lang=]]
--[[Math Kernel Library (MKL):https://registrationcenter.intel.com/RegCenter/AutoGen.aspx?ProductID=1160&AccountID=&EmailID=&ProgramID=&RequestDt=&rm=NCOM&lang=]]
-Fill in your e-mail (twice, one for confirmation) and country (e.g. Japan) then click submit.
-Download the compiler appropriate for your computer (IA32/64/etc).
-Download the appropriate compiler for your computer (IA32/64/etc).
-License information will be sent to your e-mail. Even though it is provided license for MKL, but we actually only need the compiler license. MKL license will follow.
** Check the files [#z92fbf4e]
-After downloading from the links provided above, we will get two files (latest version as of April 19, 2009):
--l_cprof_p_11.0.083_ia32.tgz (Fortran compiler, for example here is 32-bit version)
--l_mkl_p_10.1.2.024.tar.gz (MKL, architecture independent)
** Installing ifort (using root privilege) [#c9d83f55]
-Let us move the file into /opt
# mv l_cprof_p_11.0.083_ia32.tgz /opt
# cd /opt
# tar -xzvf l_cprof_p_11.0.083_ia32.tgz
# cd l_cprof_p_11.0.083_ia32
-Follow the instructions given after it. Be careful when inserting the license information.
-If there is no error, intel fortran compiler for this version will be available in
** Some problems that possibly appear during installation [#o7748b1d]
***Error message about SElinux [#v284241b]
-Probably you face this error message:
Your system is protected with Security-enhanced Linux (SELinux).
We currently support only "Permissive" mode, which is
not found on the system.
To rectify this issue, you may either disable SELinux by
- setting the line "SELINUX=disabled" in your /etc/sysconfig/selinux
file - adding "selinux=0" kernel argument in lilo.conf or grub.conf files
or make SELinux mode adjustment by
- setting the line "SELINUX=permissive" in your /etc/sysconfig/selinux
file or ask your system administrator to make SELinux mode adjustment.
You may need to reboot your system after changing the system parameters.
More information about SELinux can be found at http://www.nsa.gov/selinux/
Quitting! Press "Enter" to terminate install.
-To solve this, edit /etc/sysconfig/selinux
# emacs /etc/sysconfig/selinux &
-Restart the machine, try again to install.
*** Dependencies for libstdc++.so.5 [#of57fd72]
- In Fedora Linux, if libstdc++.so.5 is needed then we should install it using this command:
# yum -y install compat-libstdc++-33
(How to do is written on [[this page:http://flex.phys.tohoku.ac.jp/japanese/pukiwiki/index.php?PC%20%C1%C8%A4%DF%CE%A9%A4%C6%A1%A1Xenon%204%2B4%A1%A1%28%B8%F8%B3%AB%29#c286c6ee]] in Japanese too)
*** Dependencies for g++ [#b122d343]
- If g++ is needed then install it using:
# yum install gcc-c++
(not "yum install g++")
** Installing MKL [#t6e5325b]
-Same procedure as installation of ifort.
# mv l_mkl_p_10.1.2.024.tar.gz /opt
# cd /opt
# tar -xzvf l_mkl_p_10.1.2.024.tar.gz
# cd l_mkl_p_10.1.2.024
-After finishing the installation, we will get this:
** PATH variables [#z79b1e67]
-Check the PATH
$ echo $PATH
Probably "ifort" directory is not included yet.
-There are two choices to include "ifort" (choose one of them and assume we use bash as the default shell):
--For a particular user, edit "~/.bashrc"
$ emacs ~/.bashrc
--For all users, in Ubuntu Linux we can edit "/etc/profile" as a root:
# emacs /etc/profile
In Fedora linux, we should edit "/etc/bashrc" instead of "/etc/profile":
# emacs /etc/bashrc
-Add the following line at a reasonable place in the bash file, for example at the end of the file:
source /opt/intel/Compiler/11.0/083/bin/ifortvars.sh xxxx
("ia32" for 32-bit, "ia64" for 64-bit, type without quotes)
-Logout then login again, check the PATH difference with previous time:
$ echo $PATH
Hope now "ifort" is included in PATH.
** Cleaning up [#w6c5d2fd]
-If we feel annoyed with the installers, we can remove them:
# rm -Rf /opt/l_mkl_p_10.1.2.024* /opt/l_cprof_p_11.0.083_ia32*