plumed mpi installation problem

962 views
Skip to first unread message

Nidhi Katyal

unread,
Feb 18, 2014, 7:18:33 AM2/18/14
to plumed...@googlegroups.com
Hello all

I am new to plumed. I would like to install mpi version of plumed. I have installed openmpi in the following directory:
$HOME/opt/openmpi
and in .bashrc file, I  have added it using:
echo "export PATH=\$PATH:\$HOME/opt/openmpi/bin" >> $HOME/.bashrc
echo "export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:\$HOME/opt/openmpi/lib" >> $HOME/.bashrc

My system has both gcc and icc compiler installed. 
In the plumed directory when I type:
./configure.sh
and choose 3) linux.mpi.gcc
I get following error: core/../../core/tools/../../tools/Communicator.h:25:17: fatal error: mpi.h: No such file or directory compilation terminated.

Please help me rectify the problem.
Thanks in advance.

Nidhi

Giovanni Bussi

unread,
Feb 18, 2014, 7:58:49 AM2/18/14
to plumed...@googlegroups.com
Hi,

edit the file Makefile.conf and replace
CXX=g++
with
CXX=mpic++

Let us know if this fixes your problem,

Giovanni



--
You received this message because you are subscribed to the Google Groups "PLUMED users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plumed-users...@googlegroups.com.
To post to this group, send email to plumed...@googlegroups.com.
Visit this group at http://groups.google.com/group/plumed-users.
For more options, visit https://groups.google.com/groups/opt_out.

Nidhi Katyal

unread,
Feb 19, 2014, 1:35:40 AM2/19/14
to plumed...@googlegroups.com
Hi Giovanni,

No, it doesn't fixes the problem. I am getting following error:
mpic++: error while loading shared libraries: libopen-pal.so.4: cannot open shared object file: No such file or directory.
Please help me solve the problem.

Nidhi

Andrea Spitaleri

unread,
Feb 19, 2014, 1:57:35 AM2/19/14
to plumed...@googlegroups.com
Hi,

what gives you back this:

ldd `which mpic++`

?

and


--
You received this message because you are subscribed to the Google Groups "PLUMED users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plumed-users...@googlegroups.com.
To post to this group, send email to plumed...@googlegroups.com.
Visit this group at http://groups.google.com/group/plumed-users.
For more options, visit https://groups.google.com/groups/opt_out.



--
"finche' andate in bici e fischia il vento
non sara' mai una brutta giornata"
----------------------------------------------------------------
http://sites.google.com/site/andreaspitaleri/
----------------------------------------------------------------
http://it.linkedin.com/in/andreaspitaleri
----------------------------------------------------------------

Nidhi Katyal

unread,
Feb 19, 2014, 2:33:31 AM2/19/14
to plumed...@googlegroups.com
I am getting :
ldd: ./which mpic++: No such file or directory


Nidhi

On Tuesday, February 18, 2014 5:48:33 PM UTC+5:30, Nidhi Katyal wrote:

Giovanni Bussi

unread,
Feb 19, 2014, 2:41:05 AM2/19/14
to plumed...@googlegroups.com
Hi,

did you check first if your mpi compiler works?

I guess the problem is with your environment variables. You should also set
export LIBRARY_PATH="$LIBRARY_PATH:$HOME/opt/openmpi/lib"

Let us know if this fixes compilation.

Giovanni



--

Nidhi Katyal

unread,
Feb 19, 2014, 4:24:37 AM2/19/14
to plumed...@googlegroups.com
Hi,

My mpi compiler was working previously when I have installed in some local directory. But then I have reinstalled openmpi in default directory (without any prefix). Now it is not working although the installation was successful. Also, I am unable to figure out the default directory even though I can see mpirun, mpic++ etc in /usr/local/bin directory.
Please help me figure out the problem.

Thanks in advance.
Nidhi

On Tuesday, February 18, 2014 5:48:33 PM UTC+5:30, Nidhi Katyal wrote:

Giovanni Bussi

unread,
Feb 19, 2014, 4:27:39 AM2/19/14
to plumed...@googlegroups.com
If it is a problem with mpi installation you could find better help on the mailing list related to the mpi library you installed.

Giovanni



--

Nidhi Katyal

unread,
Feb 19, 2014, 4:46:18 AM2/19/14
to plumed...@googlegroups.com

Direct mpirun command is not working but by specifying its full local path as $HOME/opt/openmpi/bin/mpirun mpirun works.
 Also as suggested by you in previous mail, I have set
export LIBRARY_PATH="$LIBRARY_PATH:$HOME/opt/openmpi/lib"
still I am getting same error:
mpic++: error while loading shared libraries: libopen-pal.so.4: cannot open shared object file:No such file or directory.
Any suggestions from your side (since I believe mpirun is working)?

Nidhi

On Tuesday, February 18, 2014 5:48:33 PM UTC+5:30, Nidhi Katyal wrote:

Carlo Camilloni

unread,
Feb 19, 2014, 4:48:14 AM2/19/14
to plumed...@googlegroups.com

e.jjo...@gmail.com

unread,
Feb 27, 2014, 9:52:24 AM2/27/14
to plumed...@googlegroups.com
I was having some similar issues and I was able to fix the problem by exporting to LD_LIBRARY_PATH and LIBRARY_PATH. Try this and see if it works.

Jignesh Prajapati

unread,
Feb 28, 2014, 1:33:06 PM2/28/14
to plumed...@googlegroups.com
Hi,

I think you have installed openmpi with static library and that's why " libopen-pal.so.4" file is missing. Try to install openmpi with shared library.

Command,
./configure   --enable-shared

Set required paths and try again.

Thanks,
Jignesh

Nidhi Katyal

unread,
Mar 1, 2014, 12:29:37 AM3/1/14
to plumed...@googlegroups.com
Thanks Carlo, e.jjordan and Jignesh. It was the problem of setting of path. Now, it is working.
Thank you all for the help.

Nidhi


--
You received this message because you are subscribed to a topic in the Google Groups "PLUMED users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/plumed-users/h0dTH20i3yg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to plumed-users...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages