Add ipv6 hint
[linux_from_scratch_hints.git] / intel-fortran-compiler.txt
blob86a9ffdb77e7801d631733db5661259b2e0f2522
1 AUTHOR: Daniel Baumann <daniel.baumann@panthera-systems.net>
3 DATE: 2004-12-03
5 LICENSE: GNU General Public License
7 SYNOPSIS: How to install the Intel Fortran Compiler on LFS.
9 PRIMARY URI: http://archive.daniel-baumann.ch/linux-from-scratch/hints/intel-fortran-compiler/
11 DESCRIPTION:
12 How to install the Intel Fortran Compiler on your LFS-system.
14 PREREQUISITES:
15 A complete LFS-system with cpio and rpm2cpio (instructions included in the hint).
17 HINT:
18 --------------------------------------------------------------------------------
20 Intel Fortran Compiler 8.1.021
21 ==============================
24 1. Introduction to Intel Fortran Compiler
25 =========================================
27 This is Intel's fully optimized Fortran compiler for Intel-based CPUs. It
28 complies with the Fortran 95 specifications.
31 1.1. Package information
32 ========================
34   * Download (FTP): ftp://download.intel.com/software/products/compilers/downloads/l_fc_pu_8.1.021.tar.gz
36   * MD5 Sum: 005e245fbb8b342d07f122a5301939fa
38   * Download size: 88 MB
40   * Estimated build time: none
43 1.2. Additional downloads
44 =========================
46 Required:
48   * License file
50     The Intel Fortran Compiler needs a key to unlock. It is free for research or
51     educational and private non-commercial purposes. If you like to get a
52     commercial license, see
53     http://www.intel.com/software/products/compilers/flin/pricelist.htm.
55     Download: http://www.intel.com/software/products/compilers/flin/noncom.htm
58 1.3. Intel Fortran Compiler dependencies
59 ========================================
61 Required:
63   * cpio (see BLFS for instructions)
65   * rpm2cpio
67     Download (HTTP): http://www.rpm.org/tools/scripts/rpm2cpio.sh
69     Install rpm2cpio by running the following commands:
71    __________________________________________________________________________
72   |                                                                          |
73   |  cp rpm2cpio.sh /usr/bin/rpm2cpio                                        |
74   |  chmod 0755 /usr/bin/rpm2cpio                                            |
75   |__________________________________________________________________________|
78 2. Installation of Intel Fortran Compiler
79 =========================================
82 2.1. Compiler installation
83 ==========================
85 Install the compiler by running the following commands:
87    __________________________________________________________________________
88   |                                                                          |
89   |  rpm2cpio intel-ifort8-8.1-020.i386.rpm | cpio -id                       |
90   |  rm -f opt/intel_fc_80/bin/uninstall.sh                                  |
91   |  mv opt/intel_fc_80/bin/* /opt/bin                                       |
92   |  mv opt/intel_fc_80/doc /opt/doc/ifc                                     |
93   |  mv opt/intel_fc_80/include/* /opt/include                               |
94   |  mv opt/intel_fc_80/lib/* /opt/lib                                       |
95   |  mv opt/intel_fc_80/licenses /opt/doc/ifc                                |
96   |  mv opt/intel_fc_80/man/man1/* /opt/man/man1                             |
97   |  rm -rf opt                                                              |
98   |__________________________________________________________________________|
101 2.2. Debugger installation
102 ==========================
104 Install the debugger by running the following commands:
106    __________________________________________________________________________
107   |                                                                          |
108   |  rpm2cpio intel-iidb8-8.1-036.i386.rpm | cpio -id                        |
109   |  rm -f opt/intel_idb_80/bin/uninstall.sh                                 |
110   |  mv opt/intel_idb_80/bin/* /opt/bin                                      |
111   |  mv opt/intel_idb_80/doc /opt/doc/idb                                    |
112   |  mv opt/intel_idb_80/man/man1/* /opt/man/man1                            |
113   |  rm -rf opt                                                              |
114   |__________________________________________________________________________|
117 2.3. Uninstall script
118 =====================
120    __________________________________________________________________________
121   |                                                                          |
122   |  cat > /opt/bin/uninstall_intel-fortran-compiler.sh << "EOF"             |
123   |  #!/bin/sh                                                               |
124   |                                                                          |
125   |  echo -n "Uninstalling Intel Fortran Compiler: "                         |
126   |  rm -f /opt/bin/{codecov,fortcom,fpp,ifc,ifc.cfg,ifcbin,ifort,\          |
127   |     ifort.cfg,ifortbin,ifortvars.csh,ifortvars.sh,profmerge,proforder,\  |
128   |     profrun,pronto_tool, tselect,xiar,xild}                              |
129   |  rm -rf /opt/doc/ifc                                                     |
130   |  rm -f /opt/include/{for_fpclass.for,for_fpclass.h,for_fpeflags.for,\    |
131   |     for_fpeflags.h,for_iosdef.for,for_iosdef.h,fordef.for,fordef.h,\     |
132   |     forreent.for,forreent.h,ifcore.f90,ifcore.mod,iflport.f90,\          |
133   |     iflport.mod,iflposix.f90,iflposix.mod,ifport.f90,ifport.mod,\        |
134   |     ifport_types.mod,ifposix.f90,ifposix.mod,omp_lib.f,omp_lib.h,\       |
135   |     omp_lib.mod,omp_lib_kinds.mod,tbk_traceback.h}                       |
136   |  rm -f /opt/lib/{crtxi.o,crtxn.o,for_main.o,icrt.internal.map,\          |
137   |     icrt.link,ifcore_msg.cat,libcprts.a,libcprts.so,libcprts.so.5,\      |
138   |     libcxa.a,libcxa.so,libcxa.so.5,libcxaguard.a,libcxaguard.so,\        |
139   |     libcxaguard.so.5,libguide.a,libguide.so,libguide_stats.a,\           |
140   |     libguide_stats.so,libifcore.a,libifcore.so,libifcore.so.5,\          |
141   |     libifcore_pic.a,libifcoremt.a,libifcoremt.so,libifcoremt.so.5,\      |
142   |     libifcoremt_pic.a,libifport.a,libifport.so,libifport.so.5,libimf.a,\ |
143   |     libimf.so,libirc.a,libirc_s.a,libompstub.a,libsvml.a,libsvml.so,\    |
144   |     libunwind.a,libunwind.so,libunwind.so.5}                             |
145   |  rm -f /opt/man/man1{ifc.1,ifort.1}                                      |
146   |  sed -i -e 's/source \/opt\/bin\/ifortvars.sh//' /etc/profile            |
147   |  echo "done."                                                            |
148   |  echo -n "Uninstalling Intel Application Debugger: "                     |
149   |  rm -f /opt/bin/{idb,idb.el,idbvars.csh,idbvars.sh,iidb,mpirun_dbg.idb}  |
150   |  rm -rf /opt/doc/idb                                                     |
151   |  rm -f /opt/man/man1/idb.1                                               |
152   |  sed -i -e 's/source \/opt\/bin\/idbvars.sh//' /etc/profile              |
153   |  echo "done."                                                            |
154   |                                                                          |
155   |  rm -f /opt/bin/uninstall_intel-fortran-compiler.sh                      |
156   |  EOF                                                                     |
157   |                                                                          |
158   |  chmod 755 /opt/bin/uninstall_intel-fortran-compiler.sh                  |
159   |__________________________________________________________________________|
162 3. Command explanations
163 =======================
165 The Intel Fortran Compiler is non-free software. To separate it from the main
166 system, installing in /opt is choosen.
169 4. Configuring Intel Fortran Compiler
170 =====================================
173 4.1. License file
174 =================
176 Install your license file with the following command:
178    __________________________________________________________________________
179   |                                                                          |
180   |  cp *_for_l_*.lic /opt/doc/icc/licenses                                  |
181   |__________________________________________________________________________|
184 4.2. Environment variables
185 ==========================
187 Configure the compiler by running the following commands:
189    __________________________________________________________________________
190   |                                                                          |
191   |  sed -i -e 's/<INSTALLDIR>\/licenses/\/opt\/doc\/ifc\/licenses/g' \      |
192   |     -i -e 's/<INSTALLDIR>\/bin/\/opt\/bin/g' \                           |
193   |     -i -e 's/<INSTALLDIR>\/lib/\/opt\/lib/g' /opt/bin/ifc                |
194   |                                                                          |
195   |  sed -i -e 's/<INSTALLDIR>\/include/\/opt\/include/g' /opt/bin/ifc.cfg   |
196   |                                                                          |
197   |  sed -i -e 's/<INSTALLDIR>\/licenses/\/opt\/doc\/ifc\/licenses/g' \      |
198   |     -i -e 's/<INSTALLDIR>\/bin/\/opt\/bin/g' \                           |
199   |     -i -e 's/<INSTALLDIR>\/lib/\/opt\/lib/g' /opt/bin/ifort              |
200   |                                                                          |
201   |  sed -i -e 's/<INSTALLDIR>\/include/\/opt\/include/g' /opt/bin/ifort.cfg |
202   |                                                                          |
203   |  sed -i -e 's/<INSTALLDIR>\/licenses/\/opt\/doc\/ifc\/licenses/g' \      |
204   |     -i -e 's/<INSTALLDIR>\/bin/\/opt\/bin/g' \                           |
205   |     -i -e 's/<INSTALLDIR>\/lib/\/opt\/lib/g' \                           |
206   |     -i -e 's/<INSTALLDIR>\/man/\/opt\/man/g' /opt/bin/ifortvars.csh      |
207   |                                                                          |
208   |  sed -i -e 's/<INSTALLDIR>\/licenses/\/opt\/doc\/ifc\/licenses/g' \      |
209   |     -i -e 's/<INSTALLDIR>\/bin/\/opt\/bin/g' \                           |
210   |     -i -e 's/<INSTALLDIR>\/lib/\/opt\/lib/g' \                           |
211   |     -i -e 's/<INSTALLDIR>\/man/\/opt\/man/g' /opt/bin/ifortvars.sh       |
212   |                                                                          |
213   |  sed -i -e 's/<installpackageid>/l_fc_p_8\.1\.021/' \                    |
214   |     /opt/doc/ifc/fsupport                                                |
215   |                                                                          |
216   |  echo "source /opt/bin/ifortvars.sh" >> /etc/profile                     |
217   |__________________________________________________________________________|
220 Configure the debugger by running the following commands:
222    __________________________________________________________________________
223   |                                                                          |
224   |  sed -i -e 's/<INSTALLDIR>\/licenses/\/opt\/doc\/icc\/licenses/g' \      |
225   |     -e 's/<INSTALLDIR>\/bin/\/opt\/bin/g' \                              |
226   |     -e 's/<INSTALLDIR>\/man/\/opt\/man/g' /opt/bin/idbvars.csh           |
227   |                                                                          |
228   |  sed -i -e 's/<INSTALLDIR>\/licenses/\/opt\/doc\/icc\/licenses/g' \      |
229   |     -e 's/<INSTALLDIR>\/bin/\/opt\/bin/g' \                              |
230   |     -e 's/<INSTALLDIR>\/man/\/opt\/man/g' /opt/bin/idbvars.sh            |
231   |                                                                          |
232   |  sed -i -e 's/<INSTALLTIMECOMBOPACKAGEID>/l_fc_p_8\.1\.021/' \           |
233   |     /opt/doc/idb/idbsupport                                              |
234   |                                                                          |
235   |  echo "source /opt/bin/idbvars.sh" >> /etc/profile                       |
236   |__________________________________________________________________________|
239 5. Contents
240 ===========
242 The compiler package contains codecov, fortcom, fpp, ifcbin, ifortbin,
243 profmerge, proforder, profrun, pronto_tool, tselect, xiar, xild and crtxi.o,
244 crtxn.o, for_main.o, icrt.internal.map, icrt.link, ifcore_msg.cat, libcprts.a,
245 libcprts.so, libcprts.so.5, libcxa.a, libcxa.so, libcxa.so.5, libcxaguard.a,
246 libcxaguard.so, libcxaguard.so.5, libguide.a, libguide.so, libguide_stats.a,
247 libguide_stats.so, libifcore.a, libifcore.so, libifcore.so.5, libifcore_pic.a,
248 libifcoremt.a, libifcoremt.so, libifcoremt.so.5, libifcoremt_pic.a, libifport.a,
249 libifport.so, libifport.so.5, libimf.a, libimf.so, libirc.a, libirc_s.a,
250 libompstub.a, libsvml.a, libsvml.so, libunwind.a, libunwind.so, libunwind.so.5
251 libraries.
253 The debugger package contains iidb.
256 6. Description
257 ==============
259   * codecov
261     Intel Fortran Compiler code-coverage tool
264   * idb
266     Intel Application Debugger
269   * ifcbin
271     Intel Fortran Compiler
274   * tselect
276     Intel Fortran Compiler test prioritizer
278 --------------------------------------------------------------------------------
280 CHANGELOG:
281 [2004-12-03]
282   * Updated to ifc 8.1.021.
283 [2004-09-19]
284   * Updated to ifc 8.1.018.
285 [2004-09-09]
286   * Formal changes.
287   * Minor text changes.
288   * Added Command explanations.
289 [2004-07-17]
290   * Typographic mistakes corrected.
291 [2004-07-10]
292   * Initial revision.