lammps MPI in ubuntu

I wanted to install lammps parallel according to lammps sites’s instructions.
but after installing packages and run an example parallel I got this error:

It looks like MPI_INIT failed for some reason; your parallel process is
likely to abort. There are many reasons that a parallel process can
fail during MPI_INIT; some of which are due to configuration or environment
problems. This failure appears to be an internal failure; here’s some
additional information (which may only be relevant to an Open MPI

ompi_mpi_init: orte_init failed
–> Returned “A system-required executable either could not be found or was not executable by this user” (-127) instead of “Success” (0)

This is an MPI problem, not a LAMMPS problem.
I suggest you find a local expert to help you.


Though as Steve said, though not related to the error you are having
I've attached a makefile I've been using which seems to work for me.
(I stole this makefile from the ubuntu forums. Copy it into the
src/MAKE/ directory.)

I've read some ubuntu users complain about MPI problems after
upgrading from an earlier version of ubuntu. If it helps, I'm running
this on a fresh installation of ubuntu 11.10 (I had to install these
additional packages: mpich2, build-essential, fftw-dev, gfortran,
g++) Anyway, this works on a multi-core desktop. (I don't have a
cluster to test it on at the moment.)


Makefile.ubuntu_parallel.txt (649 Bytes)

Makefile.ubuntu_serial (649 Bytes)