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 <robobe...@gmail.com> 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><openmpi.spec>_______________________________________________
> 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/

Reply via email to