How to install magus-gtk2 on SuSE9.2 from the source-RPMs (might also work for Redhat or other RPM-based systems): IMPORTANT: Due to a bug in the postgresql-devel-7.4.5-6 package of SuSE9.2, it is necessary to make a symbolic link manually after installing that package and before compiling MAGUS. You can do this (as root) with the following command: ( cd /usr/include/pgsql/internal && ln -s ../server/getaddrinfo.h . ) 1. First copy the packed sources and patches into /usr/src/packages/SOURCES/ and the magus*.spec file into /usr/src/packages/SPECS/. This happens automatically if you install the source package. 2. Go into /usr/src/packages/SPECS/ 3. Create the binary and developments packages with the command rpmbuild --target i586 -bb magus*.spec [On older rpm versions "rpmbuild" does not exist: use "rpm" instead.] You can of course replace i586 also by i386, i486, i686, or athlon, depending on the architecture for the binary package. The binary and development packages will be generated in /usr/src/packages/RPMS/i586/ (the output should contain a corresponding text near the end). If this step is not successfull, see TROUBLESHOOTING below. After successfull execution do *not* delete the temporary data, but continue with the next steps instead: 4. [Optional] If you want a package built as "root" (which does not contain your user name in the file permissions) you should *not* run 3. as root but instead get the program "fakeroot" and run as a next step fakeroot rpmbuild --target i586 --define "fake 1" -bb magus*.spec The option `--define "fake 1"' means that *only* the install portion of the previous step is repeated (as a faked root). This might only work with newer versions of rpmbuild. 5. Create the "noarch" data package with the command [fakeroot] rpmbuild --target noarch -bb magus*.spec This will only work properly if you have successfully done step 4. The package will be created in /usr/src/packages/RPM/noarch/. 6. [optional] Delete the temporary data in /usr/src/packages/BUILD, e.g. with rpmbuild --clean magus*.spec and delete the sources and patches from /usr/src/packages/SOURCES and this patch file from /usr/src/packages/SPECS 7. [optional] Create the source package with the command rpmbuild -bs magus*.spec The source package will be created in /usr/src/packages/SRPM. 8. [optional] Delete sources and patches from /usr/srcpackage/SOURCE and this patch file from /usr/src/packages/SPECS e.g. with rpmbuild --rmsource --rmspec magus*.spec 9. [optional] Install the packages as root with rpm -U binary_package data_package where, of course, binary_package and data_package have to be replaced by the corresponding (relative or absolute) paths to the generated packages. Note that you should either specify both packages in one command as above or first install data_package. TROUBLESHOOTING: If step 3 is not successfull, this can have many different reasons. Most probably, you need to install some package (probably some *-devel package) from your distribution. To find out which package is missing, look for the error messages to guess at least parts of the missing filename and find out the correpesponding package with the "pin" command (you have to install the pin package, of course, to do so). A good candidate for a missing package is postgresql-devel. If the compiler stops with "killed" this is probably actually an "out of memory" error - be sure to have sufficient swap space and not to run other processes (close KDE or even X if necessary): I experienced that 320 MB total space are the lower limit of memory.