<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>Frepple / Build instructions for Red Hat-based linux systems</title> <link rel='stylesheet' href='../styles.css' type='text/css' /> <!--PageHeaderFmt--> </head> <body> <div id="container"> <div id="menubar"> <div id="logo" align="center"> <br/><img src='../frepple.bmp' alt="frepple" /><br/> <a href='http://www.frepple.com/'> <strong>a Free<br/>Production Planning<br/>Library</strong> </a></div> <div id="menu"> <br/> <h3><a href='../Main/HomePage.html'>Main</a></h3> <h3><a href='../UI/Main.html'>User Manual</a></h3> <h3><a href='../Tutorial/Main.html'>Tutorial</a></h3> <h3><a href='Main.html'>Reference Manual</a></h3> <h3><a href='../Main/FAQ.html'>FAQ</a></h3> <h3><a href='../reference/index.html'>C++ API</a></h3> <br/><div> </div> </div> </div> <div id="content"> <br/> <!--PageText--> <div id='wikitext'> <p><a class='wikilink' href='../Main/HomePage.html'>Main</a> > <span class='wikitrail'><a class='wikilink' href='Main.html'>Reference Manual</a> > <a class='wikilink' href='Installation.html'>Download and install</a> > <a class='wikilink' href='InstallationLinux.html'>Installing on Linux, Unix and Cygwin</a> > <a class='wikilink' href='InstallationLinuxBuild.html'>Build instructions</a> > <a class='selflink' href='InstallationLinuxBuildRPM.html'>Build instructions for Red Hat-based linux systems</a></span> </p> <p class='vspace'>Red Hat, Fedora, Suse, Mandriva... are linux distributions using the RPM format to package software. </p> <div class='vspace'></div><ul><li>Install the rpmbuild package <div class='vspace'></div></li><li>Create a build directory structure. </li></ul><pre> mkdir /home/your_userid/rpm mkdir /home/your_userid/rpm/SOURCES mkdir /home/your_userid/rpm/SPECS mkdir /home/your_userid/rpm/BUILD mkdir /home/your_userid/rpm/SRPMS mkdir -p /home/your_userid/rpm/RPMS/i386 </pre><div class='vspace'></div><ul><li>Mark this new directory tree as the build environment by putting this line in a file called .rpmmacros in your home directory: </li></ul><pre> %_topdir /home/your_userid/rpm </pre><div class='vspace'></div><ul><li>Install the source rpm file: </li></ul><pre> rpm -i frepple-0.8.0-1.src.rpm </pre><dl><dd>This will create files in the SOURCES directory of your RPM building directory tree, and a .spec file in the SPECS directory. </dd></dl><div class='vspace'></div><ul><li>Go the SPECS directory and give the command to build the RPM: </li></ul><pre> cd /home/your_userid/rpm/SPECS rpmbuild -bb frepple.spec </pre> </div> <!--PageFooterFmt--> <!--HTMLFooter--> </div></div> </body> </html>