LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   help regarding intel fortran compiler (http://www.linuxquestions.org/questions/linux-newbie-8/help-regarding-intel-fortran-compiler-821866/)

nishith17 07-24-2010 06: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: libstdc++.so.5: 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 07:12 AM

Install libstdc++.so.5. 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 08: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 →
http://packages.ubuntu.com/jaunty/libstdc++5
→ → Download libstdc++5
.

makyo 07-24-2010 09:34 AM

Hi.

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

% ldd a.out
        linux-vdso.so.1 =>  (0x00007fffffffe000)
        libm.so.6 => /lib/libm.so.6 (0x00007f195b180000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007f195af64000)
        libc.so.6 => /lib/libc.so.6 (0x00007f195ac11000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f195a9fa000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007f195a7f6000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f195b403000)

noting that no c++ library is required.

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

% ldd a.out
        linux-vdso.so.1 =>  (0x00007f7690818000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f76902f2000)
        libm.so.6 => /lib/libm.so.6 (0x00007f769006f000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f768fe58000)
        libc.so.6 => /lib/libc.so.6 (0x00007f768fb05000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f76905fe000)

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

The compiler uses libraries:
Code:

% ldd /opt/intel/Compiler/11.1/056/bin/intel64/ifort
        linux-vdso.so.1 =>  (0x00007fffffffe000)
        libm.so.6 => /lib/libm.so.6 (0x00007faab5102000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007faab4ee6000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007faab4ccf000)
        libc.so.6 => /lib/libc.so.6 (0x00007faab497c000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007faab4778000)
        /lib64/ld-linux-x86-64.so.2 (0x00007faab5385000)

The dependencies for stdc++ are:
Code:

% ldd /usr/lib/libstdc++.so.6
        linux-vdso.so.1 =>  (0x00007fffffffe000)
        libm.so.6 => /lib/libm.so.6 (0x00007fe801538000)
        libc.so.6 => /lib/libc.so.6 (0x00007fe8011e5000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fe801adb000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fe800fcd000)

which appears OK to me.

However, our platforms differ somewhat. Mine is:
Code:

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 11:20 AM.