LinuxQuestions.org
Visit Jeremy's Blog.
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 10-19-2011, 10:45 AM   #1
Azazwa
Member
 
Registered: Mar 2009
Distribution: Fedora 8, Ubuntu 9.10, SuSE 10, Fedora 14
Posts: 98

Rep: Reputation: 15
openmpi, compiler trouble


Hi!

I used KPackageKit (on Fedora 14) to get openmpi onto my system.

I set the PATH and LD_LIBRARY_PATH as specified on the openmpi site. If I try to run something that I programmed on a differnet system with openmpi, then I get this:
Code:
[Sooty@sooties ~]$ mpirun -np 2 /home/Sooty/Documents/par/mpiArea
/home/Sooty/Documents/par/mpiArea: Symbol `ompi_mpi_comm_null' has different size in shared object, consider re-linking
/home/Sooty/Documents/par/mpiArea: Symbol `ompi_mpi_comm_null' has different size in shared object, consider re-linking
/home/Sooty/Documents/par/mpiArea: symbol lookup error: /home/Sooty/Documents/par/mpiArea: undefined symbol: _ZN3MPI18FinalizeInterceptsEv
The area from 2.000000 to 5.000000 is: 38.999775
/home/Sooty/Documents/par/mpiArea: symbol lookup error: /home/Sooty/Documents/par/mpiArea: undefined symbol: _ZN3MPI18FinalizeInterceptsEv
--------------------------------------------------------------------------
mpirun has exited due to process rank 0 with PID 4544 on
node sooties exiting without calling "finalize". This may
have caused other processes in the application to be
terminated by signals sent by mpirun (as reported here).
--------------------------------------------------------------------------
But if I try to compile something then I get this:
Code:
[Sooty@sooties ~]$[Sooty@sooties ~]$ mpiCC /home/Sooty/Documents/Par/hi.cpp -o /home/Sooty/Documents/Par/hi
Command not found.
So, it is clear to me that the compiler isn't picked up, but that mpirun works.

I don't really know what the package manager did. On the openmpi site I see that one should do a few things if one downloaded it directly from the site. http://www.open-mpi.org/faq/?category=building

Also:
Code:
[Sooty@sooties ~]$ which mpiCC
/usr/bin/which: no mpiCC in (/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/lib64/openmpi/bin:/home/Sooty/bin:/usr/lib64/openmpi/bin)
Um, but I don't know how to fix this. I don't know where the compilers are supposed to be, or whether I should just configure or make some files or what.

So any guidance would be appreciated!
:-)
 
Old 10-19-2011, 01:46 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
'mpiCC' is not in your PATH ? Or openmpi-devel is not installed.

This will do : # yum install openmpi-devel

And may be ...
1) export PATH=/usr/lib64/openmpi/bin:/usr/bin:/bin (etc.)
2) mpiCC <file> -<option> ...

The export command is temporary.
Will reset to /usr/bin:/bin (etc.), when you exit the terminal.

P.S. :
This command will tell, which package to install for a certain file :
Example : yum provides */mpiCC

..

Last edited by knudfl; 10-19-2011 at 01:56 PM.
 
Old 10-19-2011, 02:44 PM   #3
Azazwa
Member
 
Registered: Mar 2009
Distribution: Fedora 8, Ubuntu 9.10, SuSE 10, Fedora 14
Posts: 98

Original Poster
Rep: Reputation: 15
It worked!!!

Well, I just installed that particular package with yum, and opened a new shell. I didn't need to change the PATH or anything.

Thank you so much!!!

:-)
 
  


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
Trouble installing gnu ARM C compiler ckuecker Linux - Embedded & Single-board computer 2 10-29-2009 08:38 PM
Trouble with gcc compiler on arm platform meda75 Linux - Newbie 6 03-14-2009 12:51 PM
problem with openmpi hanamilani Linux - Software 7 01-16-2009 01:22 PM
i got trouble where compiler krusader :( hakuso Linux - Software 2 06-28-2005 12:03 PM
I am in a trouble between ./configure apache2 and c compiler babyboss Slackware 6 10-21-2004 09:57 AM


All times are GMT -5. The time now is 08:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration