[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. #contents ** Get the installer [#installer] -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 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 [#checkfiles] -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) [#install-ifort] -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 # ./install.sh -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 /opt/intel/Compiler/11.0/083/ ** Some problems that possibly appear during installation [#some-problems] ***Error message about SElinux [#selinux] -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 & SELINUX=permissive !SELINUXTYP=targeted -Restart the machine, try again to install. *** Dependencies for libstdc++.so.5 [#libstdcpp] - 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++ [#gpp] - If g++ is needed then install it using: # yum install gcc-c++ (not "yum install g++") ** Installing MKL [#install-mkl] -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 # ./install.sh -After finishing the installation, we will get this: /opt/intel/mkl/10.1.2.024 ** PATH variables [#path-variables] -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 [#clean-up] -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*