-   Linux - Newbie (
-   -   help regarding intel fortran compiler (

nishith17 07-24-2010 07:56 AM

help regarding intel fortran compiler
hey i have installed intel fortran compiler and also added the path in .bashrc file.

on giving a command to compile like ifort new.for it gives an error -

/Desktop$ ifort new.for
/opt/intel/Compiler/11.1/064/bin/ia32/fortcom: error while loading shared libraries: cannot open shared object file: No such file or directory
ifort: error #10273: Fatal error in /opt/intel/Compiler/11.1/064/bin/ia32/fortcom, terminated by 0x7f

well m not able to understand that... new to linux plz help

AlucardZero 07-24-2010 08:12 AM

Install You neglected to mention what distro you are running. Is it Ubuntu like your profile says? What version!? Try installing libstdc++5 (or ia32-libs if you're 64-bit).

knudfl 07-24-2010 09:10 AM

sudo apt-cache search libstdc++

sudo apt-get install libstdc++5

.. And if you have Ubuntu 9.10 or 10.04 :
Get an Ubuntu 9.04 package →
→ → Download libstdc++5

makyo 07-24-2010 10:34 AM


A data point: compiling a simple "hi.for" code with ifort, and looking at the libraries required with ldd yields:

% ldd a.out =>  (0x00007fffffffe000) => /lib/ (0x00007f195b180000) => /lib/ (0x00007f195af64000) => /lib/ (0x00007f195ac11000) => /lib/ (0x00007f195a9fa000) => /lib/ (0x00007f195a7f6000)
        /lib64/ (0x00007f195b403000)

noting that no c++ library is required.

The same kind of code, hi.cpp, with g++:

% ldd a.out =>  (0x00007f7690818000) => /usr/lib/ (0x00007f76902f2000) => /lib/ (0x00007f769006f000) => /lib/ (0x00007f768fe58000) => /lib/ (0x00007f768fb05000)
        /lib64/ (0x00007f76905fe000)

suggests that you are using some c++ code. If so, you may need additional packages. If not, fine.

The compiler uses libraries:

% ldd /opt/intel/Compiler/11.1/056/bin/intel64/ifort =>  (0x00007fffffffe000) => /lib/ (0x00007faab5102000) => /lib/ (0x00007faab4ee6000) => /lib/ (0x00007faab4ccf000) => /lib/ (0x00007faab497c000) => /lib/ (0x00007faab4778000)
        /lib64/ (0x00007faab5385000)

The dependencies for stdc++ are:

% ldd /usr/lib/ =>  (0x00007fffffffe000) => /lib/ (0x00007fe801538000) => /lib/ (0x00007fe8011e5000)
        /lib64/ (0x00007fe801adb000) => /lib/ (0x00007fe800fcd000)

which appears OK to me.

However, our platforms differ somewhat. Mine is:

OS, ker|rel, machine: Linux, 2.6.26-2-amd64, x86_64
Distribution        : Debian GNU/Linux 5.0
ifort (IFORT) 11.1 20090827
g++ (Debian 4.3.2-1.1) 4.3.2

Best wishes ... cheers, makyo

All times are GMT -5. The time now is 10:59 AM.