Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Problems with openmpi-1.4.3
From: Gustavo Correa (gus_at_[hidden])
Date: 2011-03-21 02:02:33


Hi Amos

This form perhaps?
 'export PATH=/opt/openmpi/bin:$PATH'
You don't want to wipe off the existing path, just add openmpi to it.

Also, Intel also has its shared libraries, which may be causing trouble.
My guess is that you need to set the Intel environment first by
placing a line more or less like this in your .bashrc/.cshrc file:

source /path/to/intel/bin/ifortvars.sh (or ifortvars.csh depending on the shell you use)

The Intel script will add the Intel bin and lib directories to your environment.

Then on your .bashrc/.cshrc you pre-pend the OpenMPI bin and lib directories
to your PATH and LD_LIBRARY_PATH:

export PATH=/opt/openmpi/bin:$PATH
export LD_LIBRARY_PATH=/opt/openmpi/lib:$LD_LIBRARY_PATH

for bash, or 'setenv PATH /opt/openmpi/bin:$PATH', etc for csh.

I hope this helps,
Gus Correa

On Mar 20, 2011, at 10:43 PM, Amos Leffler wrote:

> Hi,
> I have been having problems getting openmpi-1.4.3 with Linux
> under SUSE 11.3. I have put the following entries in .bashrc:
> PATH: /opt/openmpi/bin
> LD_LIBRARY_PATH /opt/openmpi/lib
> alias ifort='opt/intel/bin/ifort'
> alias libopen-pal.so.0:=/usr/lib/libopen-pal.so.0
> The file appears to run properly under the configure command:
> ./configure CC=gcc CXX=g++ F77=ifort
> F90=ifort --prefix=/opt/openmpi
> and using make all install. However, running an example such as:
> mpicc hello_c.c -o hello_c it gives the result:
> mpicc: error while loading shared libraries:
> libopen-pal.so.0: cannot open shared object file: No such file or
> directory
> At this point I am stumped and any thouughts would be much
> appreciated.
>
> Amos Leffler
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users