Hi
first i suppose that you have the *.lic files.
i have created /opt/intel/licenses and I have copied the *.lic files there.
then
Code:
tar xvf l_cc_c_9.0.031.tar.gz
went to
then
Code:
sudo alien -k intel-icc9-9.0-031.i386.rpm
sudo alien -k intel-iidb9-9.0-036.i386.rpm
sudo alien -k intel-isubh9-9.0-031.i386.rpm
the instalation bit
Code:
sudo dpkg -i intel-*.deb
now we are alomst done with C\C++, and idb
now C/C++
in /opt/intel/cc/9.0/bin
I edited icc icpc and iccvars.sh
be sure that INTEL_LICENSE_FILE points to /opt/intel/licenses (remove the <INSTALLDIR>/licenses bit)
a license part in my case looks like
Code:
if [ -z "${INTEL_LICENSE_FILE}" ]
then
INTEL_LICENSE_FILE="/opt/intel/licenses:${HOME}/intel/licenses"; export INTEL_LICENSE_FILE
else
INTEL_LICENSE_FILE="${INTEL_LICENSE_FILE}:/opt/intel/licenses:${HOME}/intel/licenses"; export INTEL_LICENSE_FILE
fi
for the rest I have replaced <INSTALLDIR> with /opt/intel/cc/9.0
now the debugger
Code:
cd /opt/intel/idb/9.0/bin
I changed idbvars.sh to look like
Code:
#! /bin/sh
if [ -z "${PATH}" ]
then
PATH="/opt/intel/idb/9.0/bin"; export PATH
else
PATH="/opt/intel/idb/9.0/bin:$PATH"; export PATH
fi
if [ -z "${MANPATH}" ]
then
MANPATH="/opt/intel/idb/9.0/man":$(manpath); export MANPATH
else
MANPATH="/opt/intel/idb/9.0/man:${MANPATH}"; export MANPATH
fi
the idb should look like
Code:
#!/bin/bash
#
# Script to run the correct installed idb executable, depending on the
# platform. This allows the user to simply type "idb" at command line
# regardless of platform.
#
MACHINE=`uname -m`
DIR=`dirname ${0}`
# If the machine is not Itanium(R), then it must be a variation on the 32 bit
# machine.
#
if [[ ${MACHINE} == "ia64" ]]; then
IDB=${DIR}/eidb
else
if [[ ${MACHINE} == "x86_64" && -e ${DIR}/idb-e ]]; then
IDB=${DIR}/idb-e
else
if [[ ${MACHINE} == "i686" ]]; then
export IDB_SAVE_LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
export IDB_SAVE_DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}
export IDB_SAVE_DYLD_FRAMEWORK_PATH=${DYLD_FRAMEWORK_PATH}
export IDB_SAVE_DYLD_ROOT_PATH=${DYLD_ROOT_PATH}
export IDB_SAVE_DYLD_FALLBACK_LIBRARY_PATH=${DYLD_FALLBACK_LIBRARY_PATH}
export IDB_SAVE_DYLD_FALLBACK_FRAMEWORK_PATH=${DYLD_FALLBACK_FRAMEWORK_PATH}
export IDB_SAVE_DYLD_PATHS_ROOT=${DYLD_PATHS_ROOT}
export IDB_SAVE_DYLD_IMAGE_SUFFIX=${DYLD_IMAGE_SUFFIX}
export IDB_SAVE_DYLD_INSERT_LIBARIES=${DYLD_INSERT_LIBARIES}
fi
IDB=${DIR}/iidb
fi
fi
if [[ -e ${IDB} ]]; then
exec ${IDB} "$@"
else
echo "Unable to find idb (${IDB})"
fi
probably the most important bit is
Code:
sudo ln -s /usr/lib/libXft.so.2 /usr/lib/libXft.so.1
for fortran compiler
the idea is more or less the same
Code:
tar xvf l_fc_c_9.0.032.tar.gz
cd l_fc_c_9.0.032
sudo alien -k intel-ifort9-9.0-032.i386.rpm
sudo dpkg -i intel-*.deb
now you should have the fortran installed in /opt/intel/fc/9.0
i have changed ifortvars.sh like that
the INTEL_LICENSE_FILE part to look like
Code:
if [ -z "$INTEL_LICENSE_FILE" ]
then
INTEL_LICENSE_FILE="/opt/intel/licenses";
else
INTEL_LICENSE_FILE="$INTEL_LICENSE_FILE:/opt/intel/licenses";
fi
export INTEL_LICENSE_FILE;
in the rest of the file I have changed <INSTALLDIR> to /opt/intel/fc/9.0
I did the same with ifort file.
last bit
in my home directory I added this lines to .bashrc
Code:
#intel stuff
source /opt/intel/cc/9.0/bin/iccvars.sh
source /opt/intel/fc/9.0/bin/ifortvars.sh
source /opt/intel/idb/9.0/bin/idbvars.sh
Hope that helps,
Alin
Bookmarks