To take care of the runtime errors you just need to do the following in a
bash shell.
$ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib
If you used "./configure --prefix=/some/other/prefix", then replace
"/usr/local/lib"
with "/some/other/prefix/lib".

If you just add this to your .bashrc you should be fine.  The other options,
assuming
root access is to just add the lib directory to /etc/ld.so.conf and rerun
ldconfig on
all machines.  This will have the same effect, albeit for all users.

-Justin.

On 10/27/06, shane kennedy <kennedy_sh...@yahoo.com> wrote:

thank you for your reply.  i am using mpicc/mpif90.  i
am able to successfully compile, but during execution
i receive an "error while loading shared libraries."
i tried compiling/linking w/ -static flag to overcome
the shared library error.  however, linking w/ -static
gives me an error of "ld: cannot find -lmpi."  i do
not have a libmpi.a file.  i do have a libmpi.la file
but don't know how to link to it.


thank you,
shane




--- Ralph H Castain <r...@lanl.gov> wrote:

> Easiest method is just to use the "mpicc" command to
> compile your code. It
> will automatically link you to the right libraries,
> include directories,
> etc. You can check the $prefix/bin directory to see
> all the compiler
> wrappers we provide.
>
> Ralph
>
>
> On 10/26/06 7:12 AM, "shane kennedy"
> <kennedy_sh...@yahoo.com> wrote:
>
> > i'm not a developer & am used to linking to
> libraries
> > using the -l flag.  this only appears to work for
> .a
> > files.  openmpi generates .la files.  how do i
> link
> > the these?
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> > _______________________________________________
> > users mailing list
> > us...@open-mpi.org
> > http://www.open-mpi.org/mailman/listinfo.cgi/users
>
>
> _______________________________________________
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users

Reply via email to