Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] (no subject)
From: John Hearns (hearnsj_at_[hidden])
Date: 2012-03-17 04:35:28


Harini,
you can install OpenMPI which is packaged for your distribution of Linux,
for examply on SuSE use zypper install openmpi
or the equivalent on Redhat/Ubuntu

You probably will not get the most up to date Openmpi version,
but you will get the library paths set up in /etc/ld.so.conf.d/ and
the mpi chooser installed

Once you have this version of OpenMPI working properly you should
compile and install your own latest version.

I just checked - the latest version for SuSE 12.1 in the repository
science/openSUSE
is 1.4.5

On 16/03/2012, Gustavo Correa <gus_at_[hidden]> wrote:
>
> On Mar 16, 2012, at 8:51 AM, Addepalli, Srirangam V wrote:
>
>> This usually means you library path is not updated to find mpilibrarues.
>> You can fix this many ways, basic two steps are
>>
>> 1. Identify location of your libraries (use locate, find )
>> 2. Add it to your Library path. ( export LD_LIBRARY_PATH or make changes
>> in .bashrc or /etc/ld.so.conf)
>>
>>
>> Rangam
>
> Hi Harini
>
> Rangam is right.
> Indeed there is even an FAQ specific for this:
>
> http://www.open-mpi.org/faq/?category=running#adding-ompi-to-path
>
> By the way, the FAQ are the best documentation around.
> The README file is also helpful.
> Worth reading both, to avoid mistakes and waste of time.
>
> If using bash on .profile or equivalent, add these lines:
> export PATH=/my/path/to/openmpi/bin:$PATH
> export LD_LIBRARY_PATH=/my/path/to/openmpi/lib:$PATH
>
> If using [t]csh on .[t]cshrc add these lines:
> setenv PATH /my/path/to/openmpi/bin:$PATH
> setenv LD_LIBRARY_PATH /my/path/to/openmpi/lib:$PATH
>
> with your actual path to openmpi replaced above, of course.
>
> I hope this helps,
> Gus Correa
>
>> ________________________________________
>> From: users-bounces_at_[hidden] [users-bounces_at_[hidden]] On Behalf Of
>> jody [jody.xha_at_[hidden]]
>> Sent: Friday, March 16, 2012 4:04 AM
>> To: Open MPI Users
>> Subject: Re: [OMPI users] (no subject)
>>
>> Hi
>>
>> Did you run your program with mpirun?
>> For example:
>> mpirun -np 4 ./a.out
>>
>> jody
>>
>> On Fri, Mar 16, 2012 at 7:24 AM, harini.s .. <hharinis8_at_[hidden]> wrote:
>>> Hi ,
>>>
>>> I am very new to openMPI and I just installed openMPI 4.1.5 on Linux
>>> platform. Now am trying to run the examples in the folder got
>>> downloaded. But when i run , I got this
>>>
>>>>> a.out: error while loading shared libraries: libmpi.so.0: cannot open
>>>>> shared object file: No such file or directory
>>>
>>> I got a.out when I compile hello_c.c using mpicc command.
>>> please help me to resolve this problem.
>>> _______________________________________________
>>> users mailing list
>>> users_at_[hidden]
>>> http://www.open-mpi.org/mailman/listinfo.cgi/users
>> _______________________________________________
>> users mailing list
>> users_at_[hidden]
>> http://www.open-mpi.org/mailman/listinfo.cgi/users
>>
>> _______________________________________________
>> users mailing list
>> users_at_[hidden]
>> http://www.open-mpi.org/mailman/listinfo.cgi/users
>
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>