PB installation parallel python coupling


I tried to install the python Interface to LAMMPS. It worked fine in "serial" mode so I tried parallel. However, when I run

python setup.py build

i have an error because no "libmpl" are found (mpich is installed and I added the lib directory into setup.py).

  .... -lmpich -lmpl -lpthread -o build/lib.linux-i686-2.7/_lammps.so

/usr/bin/ld: error: cannot find -lmpl

collect2: ld returned 1 exit status

error: command 'g++' failed with exit status 1

I try to locate any "libmpl" file without success. How could I install this library ?

Couldn't I use openmpi instead of mpich?

Thks again,

What version of LAMMPS are you using?
The python dir in LAMMPS no longer uses (or provides)
a setup.py. This is b/c it no longer tries to "pre-install" LAMMPS
into your Python. Rather you just build LAMMPS as a shared
lib and load it into Python at run-time. The current
python/README explains the details.


I'm using LAMMPS 20 Apr 2012 (Liggghts last release).
I will see if I can still build it as a shared library directly .
what is the option to build that ?

Thks a lot Steve,

Just download the current version and look at
Section_python of the manual, and the files
in the python dir.


But I need Liggghts extra functionnality for granular contacts...
  I'll try to adapt it. You remember the changes that have been made for python coupling since April ?
Sorry to bother you with a not-totally-lammps-related question...


No, but if you dowload the current version and look at what is in
the python dir and the "make makeshlib" option in src, you
will see the differences.


Yep, thanks very much. I did the changes today, it works nicely. I will propose the changes to the liggghts community.
Thanks again for your help steve,