In mandriva 9.0:
1)download Intel fortran composer XE for linux
2) register in the intel website to receive the series number
3) In the installation script, if the computer cpu is x86_64, the architecture will be 32e; if the cpu is ia64, then the architecture will be 64; otherwise the architecture will be 32.
4) check if the depencies exists
"rpm -q glibc" checks that glibc package is installed.
"rpm -q libgcc1" checks that libgcc is installed.
"rpm -q libstdc++6" checks that libstdc++6 is installed.
Those three packages are part of a basic distribution, so they should not be missing. "rpm -q gcc" checks if gcc is installed. If it is not, you should install the gnu c compiler. "rpm -q libstdc++5" checks that libstdc++5 is installed, if it is not, install the package. If you want to double check everything, "/sbin/ldconfig -p | grep libstdc++" should give you files in both /usr/lib and /usr/lib64 with both versions of 5 and 6 of those libraries (4 files total). "/sbin/ldconfig -p | grep libgcc" should give you files (links to files) in /lib, /lib64, /usr/lib and /usr/lib64. If you want to check all the packages are 64-bit then the commands:
rpm -q --queryformat %{ARCH} libgcc1
rpm -q --queryformat %{ARCH} glibc
rpm -q --queryformat %{ARCH} libstdc++6
rpm -q --queryformat %{ARCH} libstdc++5
rpm -q --queryformat %{ARCH} gcc
should all give you the answer "x86_64".
If a lib not found, install it before the ifort installation.
5) go to /etc/mandriva-releases:
cp it to mandriva-release-original
open the file and modify the mandriva version to 2007.0, because it works with ifort.
6) use ./install.sh in the ifort package and install it following the instructions
7) source /opt/intel/composerxe-2011.5.220/bin/compilervars.sh intel64
this will allow the command "ifort" working in the terminal
8) change back the mandriva release to the original form.
9) it should be work
In ubuntu:
1) dpkg -s gcc:
searching if the gcc is installed in the computer, and is found
2) dpkg -s glibc: not found ,
but dpkg -s libstdc++6: is found, which should work as well....
3) the architecture of computer is 32bit, and this is why in the installation directory:
/opt/intel/composer_xe_2011_sp1.11.339/bin/,
there is a folder ia32 created by the installation process, not intel64
4) source /opt/intel/composer_xe_2011_sp1.11.339/bin/compilervars.sh ia32
in OpenSuse:
1) rpm -q gcc: gcc-4.7-2.1.1.x86_64, which uses libstdc++.so.6.
libstdc++.so.5 is included in gcc3.3.
rpm -q glibc: glibc-2.15-22.17.1.x86_64
rpm -q libstdc++5----not found
2) downloaded the recent ifort: l_fcompxe_2013.2.146
3) ./install.sh
---- there is a message 'Unsupported OS system', but I continue anyway
3) the installation is finished without other problems.
4) source /opt/intel/composer_xe_2013.2.146/bin/compilervars.sh intel64
for X86-64, it works with both 32 or 64 bit architecture.
Aucun commentaire:
Enregistrer un commentaire