Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] mpirun: symbol lookup error: mpirun: undefinedsymbol:orte_xml_fp
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2010-05-24 12:20:55

On May 24, 2010, at 12:06 PM, Dawid Laszuk wrote:

> > What's the output from "ldd hello_c"? (this tells us which libraries it's linking to at run-time -- from your configure output, it should list /usr/local/lib/ in there somewhere)
> kretyn_at_kretyn-laptop ~/Pobrane/openmpi-1.4.2/examples $ ldd hello_c
> => (0x00007ffffbdbe000)
> => /usr/lib/ (0x00007f5c7ba1e000)
> => /usr/lib/ (0x00007f5c7b7d6000)
> => /usr/lib/ (0x00007f5c7b563000)

This seems to be the problem -- it's pointing to the "wrong" libmpi (and friends).

Ensure that you're using /usr/local/bin/mpicc to compile your apps. Then you might also want to prefix the LD_LIBRARY_PATH environment variable with /usr/local/lib to ensure that you pick up your local Open MPI installation libraries (instead of the ones in /usr/lib).

For example:

export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
/usr/local/bin/mpicc hello_c.c -o hello_c -g
/usr/local/bin/mpirun -np 4 hello_c

Try that.

Jeff Squyres
For corporate legal information go to: