mpicc command not found with openmpi
I installed openmpi.i686 using yum, but I can't use the 'mpicc' complier/wrapper.
Code:
[wcucluster.master@wcucluster ~]$ mpicc |
'mpicc' is in the package 'openmpi-devel'.
You can list the installed files from a package with : rpm -ql openmpi 'openmpi-devel' will provide /usr/lib/openmpi/1.4-gcc/bin/mpicc ... and 250 other files. . |
Should I uninstall the openmpi package I installed with yum to avoid problems with the two packages or do I need both?
|
Thanks for the help! I installed it using yum
Code:
yum install openmpi-devel.i686 |
Ok I installed the package and found the directory but I can't get mpicc to run.
Code:
[wcucluster.master@wcucluster ~]$ cd /usr/lib/openmpi/bin |
Both packages are required.
Using mpicc: export PATH=/usr/lib/openmpi/bin/ && mpicc <etc. etc.> EDIT : Should be : export PATH=$PATH:/usr/lib/openmpi/bin See post # 9. . |
Thanks for the help! I found it on yum
Code:
yum install openmpi-devel.i686 |
I tried issuing the command you posted to run mpicc and I recieved this error.
Code:
[wcucluster.master@wcucluster ~]$ bash |
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
Code:
export PATH=$PATH:/usr/lib/openmpi/bin |
The command worked as far as I can tell, but when I went to run mpicc I received an error about gcc input files.
Code:
[wcucluster.master@wcucluster bin]$ bash |
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 http://www.nwchem-sw.org/index.php/S..._compi....html 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. Code:
[wcucluster.master@wcucluster override]$ cat mpicc |
Aren't you missing "/usr" at the beginning of the line?
|
All times are GMT -5. The time now is 12:19 AM. |