Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I installed openmpi.i686 using yum, but I can't use the 'mpicc' complier/wrapper.
Code:
[wcucluster.master@wcucluster ~]$ mpicc
bash: mpicc: command not found...
I've looked on their website but haven't found any useful information. Does this require some special configuration that yum doesn't do. What am I missing?
Last edited by Aqua_Regia; 10-26-2011 at 06:29 PM.
I tried issuing the command you posted to run mpicc and I recieved this error.
Code:
[wcucluster.master@wcucluster ~]$ bash
[wcucluster.master@wcucluster ~]$ export PATH=/usr/lib/openmpi/bin/ && mpicc
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
gcc in your PATH.
Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
That export statement wipes out your previous value of PATH. What you want is to add the OpenMPI directory to the list of directories that's already there. So, it should be
Of course, you need to tell the compiler which files it should compile! Edit: Obviously, if you have a makefile for the software, you'll want to change the relevant line so that it calls mpicc (rather than gcc). Then, you can just run make as usual.
Ok. Now I feel like a noob and I believe I screwed something up with mpicc which was working before because I could run
Code:
[wcucluster.master@wcucluster ~]$ mpicc --help
/home/wcucluster.master/override/mpicc: line 2: /lib/openmpi/bin/mpicc: No such file or directory
[wcucluster.master@wcucluster ~]$
and info about mpicc would be displayed. I was trying to implement this guys work around on the nwchem forum so I could compile nwchem-6.0 with mpicc instead of gcc. Here is the thread.
I added this: PATH=/home/wcucluster.master/override:$PATH to the .bashrc file which linked to a script in that directory called mpicc with the commands.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.