To Install RAPGAP, the pythia  and bases libraries are needed:

1.

get BASES from
here
create directory for bases51 and copy source (bases.tgz) code:
 
 mkdir bases
 tar xvfz
bases.tgz
 cd bases
 make
 
this should then compile and create a library under bases/lib/libbases.a

2.
get PYTHIA
follow instructions in README file, which comes with the latest tarball.

or get it from a local copy (version 6.410)
tar xvfz pythia-6.4.10.tar.gz
make lib


3.
get ARIADNE4.12
or from local copy

tar xvfz ariadne412.tgz
make


4.
get hztool from here and download the latest verion
and follow the steps for installation


5.
get HERACLES 463 from here

tar xvfz heracles463.tgz
make


6.
get RAPGAP from here
 
tar xvfz rapgap_latestversion.tgz
cd rapgap31

edit Makefile and insert the proper paths to
  pyhtia, pdflib, bases and hztool  and heracles463

make