#! /bin/bash # This script must be run as SU to install intel mkl and ifort (11.1.072). # Strongly advise to run http://www2.fizik.usm.my/configrepo/howto/inst_numeric if not already done. wget http://www2.fizik.usm.my/configrepo/howto/inst_numeric chmod +x inst_numeric ./inst_numeric # Step 0 # Run (as Root) the SELINUXpermissive script. It works for fedora. # If SELINUX is already permissive, this step can be skipped. wget http://www2.fizik.usm.my/configrepo/howto/SELINUXpermissive chmod +x SELINUXpermissive ./SELINUXpermissive # Step 1 (manual input is requiredm, so stand by) # You must first go to the intel webpage to request for an one-month licence via email at # https://registrationcenter.intel.com/RegCenter/AutoGen.aspx?ProductID=1523&AccountID=&EmailID=&ProgramID=&RequestDt=&rm=NCOM&lang= # The licence file will be sent via email as an attachement with a typical name such as NCOM_L_CMP_FOR_NR2M-G6CRKJNC.lici or NR2M-G6CRKJNC. The licence key is simply NR2M-G6CRKJNC. The licence key may also be immediately shown one the screen once you finished the online registration process. # The license will be expired in 30 days. When that happens, request again the licence file by going through the online registration process. Then paste the licence file *.lic into the folder /opt/intel/licenses. This will allow the intel application be usable for the next 30 days. It is assumed that one can repeat this procedure indefintely. cd /tmp wget http://www2.fizik.usm.my/configrepo/howto/intel/l_cprof_p_11.1.072.tgz tar xvfz l_cprof_p_11.1.072.tgz rm l_cprof_p_11.1.072.tgz cd /tmp/l_cprof_p_11.1.072 ./install.sh # Step 2 sh /opt/intel/Compiler/11.1/072/bin/ifortvars.sh intel64 sh /opt/intel/Compiler/11.1/072/bin/intel64/ifortvars_intel64.sh intel64 sh /opt/intel/Compiler/11.1/072/mkl/tools/environment/mklvarsem64t.sh intel64 echo '/opt/intel/Compiler/11.1/072/lib/intel64' >> /etc/ld.so.conf echo '/opt/intel/Compiler/11.1/072/mkl/lib/em64t' >> /etc/ld.so.conf ldconfig cd /usr/local/bin ln -s /opt/intel/Compiler/11.1/072/bin/intel64/ifort /usr/local/bin/. # To check whether the installation is sucessful, you may type 'which ifort' to see if the link /usr/local/bin/ifort is indeed working. #### Ignore the following ############################################################ ###################################################################################### # Step 2. In case this script stops here without executing the following line right after the above ./install.sh step, execute the script # wget http://www2.fizik.usm.my/configrepo/howto/intel/installintel2 in an seperate run. #wget http://www2.fizik.usm.my/configrepo/howto/intel/installintel2 #chmod +x installintel2 #./installintel2