Another cannot find MPI.h after installing openmpi on ubuntu 12.4

842 views
Skip to first unread message

SCOTT VAN CASTER

unread,
Oct 6, 2014, 6:23:43 PM10/6/14
to mpi...@googlegroups.com
On Ubuntu 12.4 I have installed openmpi via download and configure, make all, make install.  In trying to install mpi4py, I continue to get the Cannot find mpi.h file.  I have looked and I have several mpi.h files on the computer.  I have put the path to mpi.h in the PATH and the LD_LIBRARY_PATH.  I have even copied the mpi.h file into the current folder of MPI4py with no success.

I have tried pip install --upgrade mpi4py, MPICC=mpicc sudo -E pip install --upgrade mpi4py and even compile mpi4py with python setup.py build.  All give the same result of not being able to find the mpi.h file.

My environment is Ubuntu 12.4, openmpi  1.8.3, python 2.7.3.  I have not installed mpich.

Any assistance on this matter is greatly appreciated.

Scott

Lisandro Dalcin

unread,
Oct 7, 2014, 3:40:56 AM10/7/14
to mpi4py
You just have to be sure that the directory containing the "mpicc"
compiler wrapper is listed in $PATH and the directory containing the
Open MPI shared libraries (libmpi.so) is listed in $LD_LIBRARY_PATH.


--
Lisandro Dalcin
============
Research Scientist
Computer, Electrical and Mathematical Sciences & Engineering (CEMSE)
Numerical Porous Media Center (NumPor)
King Abdullah University of Science and Technology (KAUST)
http://numpor.kaust.edu.sa/

4700 King Abdullah University of Science and Technology
al-Khawarizmi Bldg (Bldg 1), Office # 4332
Thuwal 23955-6900, Kingdom of Saudi Arabia
http://www.kaust.edu.sa

Office Phone: +966 12 808-0459

SCOTT VAN CASTER

unread,
Oct 7, 2014, 8:53:50 AM10/7/14
to mpi...@googlegroups.com
Lisandro,

Thanks for your reply, I manages to get by this my removing mpi4py and the library  libopenmpi-dev, then re-installing them both.
Reply all
Reply to author
Forward
0 new messages