[Mono-list] Seeking help with RPM creation for RHEL5

Jon James jon_james at dell.com
Mon Jul 20 17:59:00 EDT 2009

Howdy folks,

I'm looking for some help around building RPMs for RHEL5.  I have been able
to download the source tarball for libgdiplus 2.4.2 and leverage the spec
file for the fedora build.  

However, mono has been quite the beast regarding building a RHEL5
rpm package.  I am using the latest fedora mono.spec file located here:

I have downloaded all the patch files from the fedora site and have them and
the source bz2 file in my build structure.  I also have all the
buildrequires packages installed.

When i initiate the command: rpmbuild -ba mono.spec The building will begin,
going through the various parts of the spec file but then towards the
compiling of mono it will throw exception and exit.

Last bit of exit detail:
make[4]: Entering directory `/usr/src/redhat/BUILD/mono-'
make PROFILE=basic all
make[5]: Entering directory `/usr/src/redhat/BUILD/mono-'
make[6]: mcs: Command not found
make[6]: *** [build/deps/basic-profile-check.exe] Error 127
*** The compiler 'mcs' doesn't appear to be usable.
*** You need a C# compiler installed to build MCS (make sure mcs works from
the command line)
*** Read INSTALL.txt for information on how to bootstrap a Mono
make[5]: *** [do-profile-check] Error 1

In the spec file i'm using, it notes about a mono-basic buildrequires for
bootstrapping but i have that commented out.

I'm a bit new to this area of linux (building, compiling and packaging) and
would appreciate some help.  I have been able to compile source for both
libgdiplus and mono without issue.  

Any direction? I'm a bit lost at the moment on what to try next.

View this message in context: http://www.nabble.com/Seeking-help-with-RPM-creation-for-RHEL5-tp24578278p24578278.html
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list