LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 07-24-2010, 07:56 AM   #1
nishith17
LQ Newbie
 
Registered: Mar 2010
Posts: 1

Rep: Reputation: 0
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
 
Old 07-24-2010, 08:12 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,652

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
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).
 
Old 07-24-2010, 09:10 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,273

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
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
.
 
Old 07-24-2010, 10:34 AM   #4
makyo
Member
 
Registered: Aug 2006
Location: Saint Paul, MN, USA
Distribution: {Free,Open}BSD, CentOS, Debian, Fedora, Solaris, SuSE
Posts: 719

Rep: Reputation: 72
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

Last edited by makyo; 07-24-2010 at 10:47 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
intel fortran compiler on slackware64 13.0 cmk77 Slackware 5 11-18-2009 02:38 PM
error when install Intel Fortran Compiler lengyue Linux - Software 9 08-27-2008 11:39 AM
how to uninstall the intel fortran compiler 8 ztdep Programming 5 07-22-2005 03:29 AM
Intel Fortran Compiler under KDevelop Ralph Kahel Linux - Software 1 07-21-2005 03:57 PM
Intel Fortran Compiler - glibc dependencies bad damien Linux - Software 1 12-03-2003 12:19 AM


All times are GMT -5. The time now is 11:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration