Installation manual

42 5. Debian and other Software Packages
#> mv tpb tpb.bin
#> vi tpb
#> cd /usr/local/stow
#> ln −s ../packages/tpb−0.4.1 .
#> stow −v tpb−0.4.1
/usr/local/packages/tpb-0.4.1/bin/tpb:
#!/bin/sh
/usr/local/bin/tpb.bin −−config=/usr/local/etc/tpbrc $@ &
5. 14. Intel Fortran Compiler
Since we use our machine for scientific number crunching, we need a decent Fortran compiler.The combo f2c
plus fort77 is way too slowand g77 had a fewnumerical problems last time we checked.
Forthis reason we want to install the Intel Fortan Compiler ifc. And once more we are amazed howcommercial
products just fail to install without a pain in the ass. alien as well as rpm refuse to install the package, so we have
to do it manually.
Compiling and Installing ifc:
#> cd /usr/local/packages
#>
#> mkdir −p ifc7−7.0/lib/ifc7/license
#> cp ˜/l_for_38668925.lic ifc7−7.0/lib/ifc7/license
#> chmod +r ifc7−7.0/lib/ifc7/license
#> mkdir −p ifc7−7.0/doc/ifc7
#>
#> mkdir intel−install
#> cd intel−install
#> tar xzf ˜/INTEL.TAR.GZ
#> alien −g intel−ifc7−7.0−64.i386.rpm
#> cd intel−ifc7−7.0.orig/opt/intel/compiler70/ia32
#> tar cf − . | (cd /usr/local/packages/ifc7−7.0; tar xf −)
#> cd ..
#> mv training docs
#> cd docs
#> tar cf − . | (cd /usr/local/packages/ifc7−7.0/doc/ifc7; tar xf −)
#> cd ..
#> tar cf − man | (cd /usr/local/packages/ifc7−7.0; tar xf −)
#> chown −R 0.0 *
#> cd doc/ifc
#> chmod −R −x *
#> find . −type d −exec chmod +x {} \;
#>
#> cd /usr/local/stow
#> ln −s ../ifc7−7.0 .
#> stow ifc7−7.0
#>
#> ldconfig
#>
#> rm −rf /usr/local/packages/intel−install
Nowwehav e to edit the wrapper script, which is supposed to launch the compiler:
/usr/local/packages/ifc7-7.0/bin/ifc:
#!/bin/sh
INTEL_LICENSE_FILE=/usr/local/lib/ifc7/license;
export INTEL_LICENSE_FILE;
if [ −z LD_LIBRARY_PATH ]
then
LD_LIBRARY_PATH=/usr/local/lib
else