Search code examples
linuxmpich

Mpich2 - hydra_pmi_proxy: error while loading libraries: libcr.so.0


I am trying to connect multiple virutalbox linux systems with mpich2. What i allready did:

  1. Install mpich-3.1.4
  2. Copy public key to every node
  3. install nfs server on every node.
  4. test if shared map works ( it does)
  5. added paths on Master

    export PATH=/share/mpich2/bin:$PATH export LD_LIBRARY_PATH="/mirror/mpich2/lib:$LD_LIBRARY_PATH"

i also aded this to: ./bashrc

  1. install build-essential

But at the end when i want to start program (mpiexec -f hosts -n 4 ./mpi_test ), i get error:

hydra_pmi_proxy: error while loading libraries: libcr.so.0:cannot open shared object file: No souch file or directory


Solution

  • From http://jahanzebnotes.blogspot.com/2013/07/hydrapmiproxy-error-while-loading.html

    If you encounter this error while running mpich, then install this:

    $ sudo apt-get install libcr-dev
    

    If you are still facing this problem then you might not have configured your LD_LIBRARY_PATH and PATH correctly, then go to ~/.bashrc, you will see this line at the start of your bash: [ -z "$PS1" ] && return

    Put your LD_LIBRRAY_PATH and PATH variable exports before this line.