Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

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/ (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

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
> 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:
> 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]