[OMPI users] openmpi-1.7.2 rpm

2013-08-08 Thread RoboBeans
Hello everyone, I am trying to create rpm from openmpi source code but 
getting following error. Could someone please point what I am doing 
wrong? I have attached buildrpm.sh and openmpi.spec for your reference. 
Thanks for your time!


# *./buildrpm.sh openmpi-1.7.2.tar.gz*


--> Found tarball: openmpi-1.7.2.tar.gz
--> Found Open MPI version: 1.7.2
--> Found specfile: openmpi.spec
grep: /root/.rpmmacros: No such file or directory
--> Found RPM top dir: /usr/src/redhat
Problem creating rpms: You do not have a /usr/src/redhat directory
tree or you do not have write access to the /usr/src/redhat directory
tree.  Please remedy and try again.




buildrpm.sh
Description: Bourne shell script
#
# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
# University Research and Technology
# Corporation.  All rights reserved.
# Copyright (c) 2004-2005 The University of Tennessee and The University
# of Tennessee Research Foundation.  All rights
# reserved.
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, 
# University of Stuttgart.  All rights reserved.
# Copyright (c) 2004-2005 The Regents of the University of California.
# All rights reserved.
# Copyright (c) 2006-2012 Cisco Systems, Inc.  All rights reserved.
# $COPYRIGHT$
# 
# Additional copyrights may follow
# 
# $HEADER$
#

#
# Copyright (c) 2003, The Regents of the University of California, through
# Lawrence Berkeley National Laboratory (subject to receipt of any
# required approvals from the U.S. Dept. of Energy).  All rights reserved.
#
# Initially written by:
#   Greg Kurtzer, 
#



#
#
# Configuration Options
#
# Options that can be passed in via rpmbuild's --define option.  Note
# that --define takes *1* argument: a multi-token string where the first
# token is the name of the variable to define, and all remaining tokens
# are the value.  For example:
#
# shell$ rpmbuild ... --define 'install_in_opt 1' ...
#
# Or (a multi-token example):
#
# shell$ rpmbuild ... \
#--define 'configure_options CFLAGS=-g --with-openib=/usr/local/ofed' ...
#
#

# Define this if you want to make this SRPM build in
# /opt/NAME/VERSION-RELEASE instead of the default /usr/.
# type: bool (0/1)
%{!?install_in_opt: %define install_in_opt 0}

# Define this if you want this RPM to install environment setup
# shell scripts.
# type: bool (0/1)
%{!?install_shell_scripts: %define install_shell_scripts 0}
# type: string (root path to install shell scripts)
%{!?shell_scripts_path: %define shell_scripts_path %{_bindir}}
# type: string (base name of the shell scripts)
%{!?shell_scripts_basename: %define shell_scripts_basename mpivars}

# Define this to 1 if you want this RPM to install a modulefile.
# type: bool (0/1)
%{!?install_modulefile: %define install_modulefile 0}
# type: string (root path to install modulefiles)
%{!?modulefile_path: %define modulefile_path /usr/share/Modules/modulefiles}
# type: string (subdir to install modulefile)
%{!?modulefile_subdir: %define modulefile_subdir %{name}}
# type: string (name of modulefile)
%{!?modulefile_name: %define modulefile_name %{version}}

# The name of the modules RPM.  Can vary from system to system.
# RHEL6 calls it "environment-modules".
# type: string (name of modules RPM)
%{!?modules_rpm_name: %define modules_rpm_name environment-modules}

# Should we use the mpi-selector functionality?
# type: bool (0/1)
%{!?use_mpi_selector: %define use_mpi_selector 0}
# The name of the mpi-selector RPM.  Can vary from system to system.
# type: string (name of mpi-selector RPM)
%{!?mpi_selector_rpm_name: %define mpi_selector_rpm_name mpi-selector}
# The location of the mpi-selector executable (can be a relative path
# name if "mpi-selector" can be found in the path)
# type: string (path to mpi-selector exectuable)
%{!?mpi_selector: %define mpi_selector mpi-selector}

# Should we build a debuginfo RPM or not?
# type: bool (0/1)
%{!?build_debuginfo_rpm: %define build_debuginfo_rpm 0}

# Should we build an all-in-one RPM, or several sub-package RPMs?
# type: bool (0/1)
%{!?build_all_in_one_rpm: %define build_all_in_one_rpm 1}

# Should we use the default "check_files" RPM step (i.e., check for
# unpackaged files)?  It is discouraged to disable this, but some
# installers need it (e.g., older versions of OFED, because they
# installed lots of other stuff in the BUILD_ROOT before Open MPI).
# type: bool (0/1)
%{!?use_check_files: %define use_check_files 1}

# By default, RPM supplies a bunch of optimization flags, some of
# which may not work with non-gcc compilers.  

Re: [OMPI users] openmpi-1.7.2 rpm

2013-08-08 Thread Jonathan Barber
I think you're missing the package "rpm-build", is it installed?

Cheers

On 8 August 2013 05:54, RoboBeans  wrote:

>  Hello everyone, I am trying to create rpm from openmpi source code but
> getting following error. Could someone please point what I am doing wrong?
> I have attached buildrpm.sh and openmpi.spec for your reference. Thanks for
> your time!
>
> # *./buildrpm.sh openmpi-1.7.2.tar.gz*
>
>
> --> Found tarball: openmpi-1.7.2.tar.gz
> --> Found Open MPI version: 1.7.2
> --> Found specfile: openmpi.spec
> grep: /root/.rpmmacros: No such file or directory
> --> Found RPM top dir: /usr/src/redhat
> Problem creating rpms: You do not have a /usr/src/redhat directory
> tree or you do not have write access to the /usr/src/redhat directory
> tree.  Please remedy and try again.
>
>
>
> ___
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>



-- 
Jonathan Barber 


Re: [OMPI users] openmpi-1.7.2 rpm

2013-08-08 Thread Jeff Squyres (jsquyres)
The issue is that the buildrpm.sh script is not really intended for users.  
It's for the OMPI developers who make the official Open MPI SRPM.  That usually 
ends up being me, so that script is somewhat tailored to my environment.

You should be able to rpmbuild --rebuild the Open MPI SRPM if you want an RPM.


On Aug 7, 2013, at 9:54 PM, RoboBeans  wrote:

> Hello everyone, I am trying to create rpm from openmpi source code but 
> getting following error. Could someone please point what I am doing wrong? I 
> have attached buildrpm.sh and openmpi.spec for your reference. Thanks for 
> your time!
> 
> # ./buildrpm.sh openmpi-1.7.2.tar.gz
> 
> 
> --> Found tarball: openmpi-1.7.2.tar.gz
> --> Found Open MPI version: 1.7.2
> --> Found specfile: openmpi.spec
> grep: /root/.rpmmacros: No such file or directory
> --> Found RPM top dir: /usr/src/redhat
> Problem creating rpms: You do not have a /usr/src/redhat directory
> tree or you do not have write access to the /usr/src/redhat directory
> tree.  Please remedy and try again.
> 
> 
> <1_Warning.txt>___
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users


-- 
Jeff Squyres
jsquy...@cisco.com
For corporate legal information go to: 
http://www.cisco.com/web/about/doing_business/legal/cri/