On 5 April 2017 at 13:01, Kevin Buckley
<kevin.buckley.ecs.vuw.ac...@gmail.com> wrote:

> I also note that as things stand, the Relocation is used for all
> files except the Environment Module file, resulting from the
> rpmbuild beig done as follows
>
>     --define 'install_shell_scripts 1' \
>     --define 'install_modulefile 1' \
>     --define 'use_mpi_selector 1' \
>     --define 'scl openmpi-openmpi' \
>     -bc openmpi-2.0.2.spec
>
> remains in the "system" tree, as
>
> /usr/share/Modules/modulefiles/openmpi-openmpi-openmpi/2.0.2
>
> although, because of the ACL naming, it would no longer clash with
> the path to a non-SCL built module file.

Furthermore, that modulefile contains the right paths

---8<---------8<---------8<---------8<---------8<---------8<---------8<------
#%Module

# NOTE: This is an automatically-generated file!  (generated by the
# Open MPI/SHMEM RPM).  Any changes made here will be lost a) if the RPM is
# uninstalled, or b) if the RPM is upgraded or uninstalled.

proc ModulesHelp { } {
   puts stderr "This module adds Open MPI/SHMEM v2.0.2 to various paths"
}

module-whatis   "Sets up Open MPI/SHMEM v2.0.2 in your enviornment"

prepend-path PATH "/opt/OpenMPI/openmpi-openmpi/root/usr/bin/"
prepend-path LD_LIBRARY_PATH /opt/OpenMPI/openmpi-openmpi/root/usr/lib64
prepend-path MANPATH /opt/OpenMPI/openmpi-openmpi/root/usr/share/man
---8<---------8<---------8<---------8<---------8<---------8<---------8<------
_______________________________________________
devel mailing list
devel@lists.open-mpi.org
https://rfd.newmexicoconsortium.org/mailman/listinfo/devel

Reply via email to