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] how to build a relocatable OpenMPI RPM ?
From: Ralph Castain (rhc.openmpi_at_[hidden])
Date: 2013-09-10 10:18:16


Let me be sure I understand. You configure without a prefix and then tell rpm to install at a specified prefix?

You may need to add something to envar - will look tonite

Sent from my iPhone

On Sep 10, 2013, at 2:09 AM, caohaijun <amao.chj_at_[hidden]> wrote:

> Hi Ralph
>
> I tried to put prefix in PATH and LD_LIBRARY_PATH, but the problem still occurs.
>
> Now my envs in ~/.bashrc are as follows (--prefix=/root/program/orte):
> export PATH=/root/program/orte:/root/program/orte/bin:$PATH
> export LD_LIBRARY_PATH=/root/program/orte:/root/program/orte/lib64:/root/program/orte/lib64/openmpi:/root/program/orte/lib:/root/program/orte/lib/openmpi:$LD_LIBRARY_PATH
>
>
> It seems the RPM is not relocatable. Because if I install OpenMPI using tarball with the same --prefix=/root/program/orte and the same env in ~/.bashrc, mpirun works well.
>
> best,
> Jimmy
>
>
> On Tue, Sep 10, 2013 at 11:23 AM, Ralph Castain <rhc.openmpi_at_[hidden]> wrote:
>> You need to put prefix location in your path and ld_library_path
>>
>> Sent from my iPhone
>>
>> On Sep 9, 2013, at 8:02 PM, caohaijun <amao.chj_at_[hidden]> wrote:
>>
>>> Hi all
>>>
>>> How to build a relocatable OpenMPI RPM ?
>>>
>>> I just use the following command to build a OpenMPI RPM from SRPM.
>>> rpmbuild --rebuild --define 'configure_options --with-devel-headers' openmpi-1.7.2-1.src.rpm
>>>
>>> It can successfully build the RPM. After installing with 'rpm -ivh --prefix=/somewhere openmpi-1.7.2-1.x86_64.rpm', I tried to run a MPI job, and then got:
>>>
>>> # mpirun -bynode -hostfile ./hostfile -np 40 ./mpi/hello
>>>
>>> --------------------------------------------------------------------------
>>>
>>> Sorry! You were supposed to get help about:
>>>
>>> opal_init:startup:internal-failure
>>>
>>> But I couldn't open the help file:
>>>
>>> /usr/share/openmpi/help-opal-runtime.txt: No such file or directory. Sorry!
>>>
>>> --------------------------------------------------------------------------
>>>
>>> --------------------------------------------------------------------------
>>>
>>> Sorry! You were supposed to get help about:
>>>
>>> orte_init:startup:internal-failure
>>>
>>> But I couldn't open the help file:
>>>
>>> /usr/share/openmpi/help-orte-runtime: No such file or directory. Sorry!
>>>
>>> --------------------------------------------------------------------------
>>>
>>> It seems the directory 'share' is supposed to be under /usr.
>>>
>>> Anyone can help me?
>>>
>>> --
>>> Best Regards!
>>>
>>> Jimmy Haijun Cao (曹海军)
>>> -----------------------------------------------------------
>>> Tel: +86-188 1787 9959
>>> Email:amao.chj_at_[hidden]
>>> -----------------------------------------------------------
>>> _______________________________________________
>>> users mailing list
>>> users_at_[hidden]
>>> http://www.open-mpi.org/mailman/listinfo.cgi/users
>
>
>
> --
> Best Regards!
>
> Haijun Cao (曹海军)
> -----------------------------------------------------------
> Tel: +86-188 1787 9959
> Email:amao.chj_at_[hidden]
> -----------------------------------------------------------