[Beowulf] cluster building advice?

Jonathan Barber jonathan.barber at gmail.com
Tue Oct 2 00:21:32 PDT 2012


On 27 September 2012 01:24, Gerald Henriksen <ghenriks at gmail.com> wrote:
> On Wed, 26 Sep 2012 10:54:01 +0200, you wrote:

[snip]

>>
>>Even trying to compile GCC 4.7.0 both 32 and 64 bits in SL was a
>>problem though it had been
>>released for months.
>
> Not difficult.
>
> Googled RHEL gcc 4.7 and discovered that Red Hat has something called
> Red Hat Developer Toolset which is gcc 4.7 for RHEL 5 and 6.

Interesting.

> Went to ftp.redhat.com and found:
>
> ftp://ftp.redhat.com/redhat/linux/enterprise/6Workstation/en/RHDevToolset/SRPMS/
>
> Downloaded and installed the SRPMS, installed the dependencies via
> yum, and built the RPMS.

I would like to recommend the "mock" [1] tool for building SRPMs in RH
environments. It basically builds a minimal chroot and then builds the
SRPM in the chroot using only the RPMs specified by the SRPM.

It's nice if you're creating your own spec files because you can make
sure that you're correctly specifying all of the dependencies and you
don't end up polluting your build machine with hundreds of -devel
packages. It also allows you to build RPMs for different major
RHEL/fedora releases without requiring an install of each environment.

Cheers

[1] http://fedoraproject.org/wiki/Projects/Mock
-- 
Jonathan Barber <jonathan.barber at gmail.com>



More information about the Beowulf mailing list