Alice from Source RPMs ====================== This README explains how to compile rpm packages for the Alice system from source rpm packages. Getting what you need --------------------- You will nedd the following source packages, in this order: seam-.src.rpm alice-.src.rpm gecode-.src.rpm alice-gtk-.src.rpm alice-gecode-.src.rpm alice-sqlite-.src.rpm alice-xml-.src.rpm alice-regex-.src.rpm alice-runtime-.src.rpm Setup rpm build infrastructure ------------------------------ If you do not want to build as root, you have to setup some infrastructure. The following commands create the necessary directories: rpmroot=${HOME}/rpmroot mkdir -p ${rpmroot}/BUILD mkdir ${rpmroot}/RPMS mkdir ${rpmroot}/SOURCES mkdir ${rpmroot}/SPECS mkdir ${rpmroot}/SRPMS Now you must add the line %_topdir ${HOME}/rpmroot to the $(HOME)/.rpmmacros file (substituting the actual value of ${HOME}!). If that file does not yet exist (or does not contain valuable data), create it with echo "%_topdir ${rpmroot}" > ~/.rpmmacros Creating and installing packages for Seam, Alice and Gecode ----------------------------------------------------------- Use the rpm tool to build and install binary packages: rpmbuild -rebuild seam-.src.rpm rpm -Uvh ${rpmroot}/RPMS/i386/seam-.i386.rpm rpmbuild -rebuild alice-.src.rpm rpm -Uvh ${rpmroot}/RPMS/i386/alice-.i386.rpm rpmbuild -rebuild gecode-.src.rpm rpm -Uvh ${rpmroot}/RPMS/i386/gecode-.i386.rpm This assumes that you are building packages for the i386 platform. If you are building for a different platform, the directories and packages will be called accordingly. Creating and installing packages for the support libraries ---------------------------------------------------------- For each of the alice--.src.rpm archives, you follow the same procedure: rpmbuild -rebuild alice--.src.rpm rpm -Uvh ${rpmroot}/RPMS/i386/alice--.i386.rpm Creating and installing packages for the runtime system ------------------------------------------------------- Finally, install the Alice runtime system: rpmbuild -rebuild alice-runtime-.src.rpm rpm -Uvh ${rpmroot}/RPMS/i386/alice-runtime-.i386.rpm Congratulations! You should now have a working installation of Alice.