Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] regarding the problem occurred while running anmpi programs
From: Lloyd Brown (lloyd_brown_at_[hidden])
Date: 2012-04-25 11:49:17


Yes, but what happens when you run a remote, non-login shell? By that,
I mean something like this:

ssh master_at_ip-10-80-106-70 'echo $LD_LIBRARY_PATH'

Assuming I got the syntax right, I suspect you'll find that the contents
of the variable, do not include /usr/local/openmpi-1.4.5/lib.

You really need that to be in LD_LIBRARY_PATH (or some other method) on
all nodes, in all shells for the user. One simple way to do this is via
the startup files (eg. .bashrc and .bash_profile for bash, .cshrc for
csh/tcsh, etc.)

Lloyd Brown
Systems Administrator
Fulton Supercomputing Lab
Brigham Young University
http://marylou.byu.edu

On 04/25/2012 09:43 AM, seshendra seshu wrote:
> Hi
> I have exported the library files as below
>
> [master_at_ip-10-80-106-70 ~]$ export
> LD_LIBRARY_PATH=/usr/local/openmpi-1.4.5/lib:$LD_LIBRARY_PATH
>
> [master_at_ip-10-80-106-70 ~]$ mpirun --prefix /usr/local/openmpi-1.4.5 -n
> 1 --hostfile hostfile out
> out: error while loading shared libraries: libmpi_cxx.so.0: cannot open
> shared object file: No such file or directory
> [master_at_ip-10-80-106-70 ~]$ mpirun --prefix /usr/local/lib/ -n 1
> --hostfile hostfile
> out
>
> out: error while loading shared libraries: libmpi_cxx.so.0: cannot open
> shared object file: No such file or directory
>
> But still iam getting the same error.
>
>
>
>
>
> On Wed, Apr 25, 2012 at 5:36 PM, Jeff Squyres (jsquyres)
> <jsquyres_at_[hidden] <mailto:jsquyres_at_[hidden]>> wrote:
>
> See the FAQ item I cited.
>
> Sent from my phone. No type good.
>
> On Apr 25, 2012, at 11:24 AM, "seshendra seshu" <seshu199_at_[hidden]
> <mailto:seshu199_at_[hidden]>> wrote:
>
>> Hi
>> now i have created an used and tried to run the program but i got
>> the following error
>>
>> [master_at_ip-10-80-106-70 ~]$ mpirun -n 1 --hostfile hostfile
>> out
>>
>> out: error while loading shared libraries: libmpi_cxx.so.0: cannot
>> open shared object file: No such file or directory
>>
>>
>> thanking you
>>
>>
>>
>> On Wed, Apr 25, 2012 at 5:12 PM, Jeff Squyres <jsquyres_at_[hidden]
>> <mailto:jsquyres_at_[hidden]>> wrote:
>>
>> On Apr 25, 2012, at 11:06 AM, seshendra seshu wrote:
>>
>> > so should i need to create an user and run the mpi program.
>> or how can i run in cluster
>>
>> It is a "best practice" to not run real applications as root
>> (e.g., MPI applications). Create a non-privlidged user to run
>> your applications.
>>
>> Then be sure to set your LD_LIBRARY_PATH if you installed Open
>> MPI into a non-system-default location. See this FAQ item:
>>
>>
>> http://www.open-mpi.org/faq/?category=running#adding-ompi-to-path
>>
>> --
>> Jeff Squyres
>> jsquyres_at_[hidden] <mailto:jsquyres_at_[hidden]>
>> For corporate legal information go to:
>> http://www.cisco.com/web/about/doing_business/legal/cri/
>>
>>
>> _______________________________________________
>> users mailing list
>> users_at_[hidden] <mailto:users_at_[hidden]>
>> http://www.open-mpi.org/mailman/listinfo.cgi/users
>>
>>
>>
>>
>> --
>> WITH REGARDS
>> M.L.N.Seshendra
>> _______________________________________________
>> users mailing list
>> users_at_[hidden] <mailto:users_at_[hidden]>
>> http://www.open-mpi.org/mailman/listinfo.cgi/users
>
> _______________________________________________
> users mailing list
> users_at_[hidden] <mailto:users_at_[hidden]>
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>
>
>
>
> --
> WITH REGARDS
> M.L.N.Seshendra
>
>
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users