Instructions for patching REAL for Linux

Note before patching:

Note 1: The REAL version 5 patches were built from the REAL5.0.tar.gz version at

http://www.cs.cornell.edu/skeshav/real/REAL5.0.tar.gz

The patch will *not* work with the REAL5.0.tar.Z as the files are not identical in both versions (although you can read the patch file and make the changes manually).

Note 2:  You must do the following before running Configure. If you have already run Configure, delete the sim5.0 directory and untar the REAL package again before continuing.

How to install:

Step 1: Patch

For REAL version 5 on RedHat 9
Put patch in the directory above sim5.0 and type:
patch -p0 < real5-redhat9-patch

For REAL version 5 on RedHat 5, 6 or 7
Put patch in the directory above sim5.0 and type:
patch -p0 < real5-redhat6-patch

For REAL version 4 (unsupported):
Put patch in the directory above sim and type:
patch -p0 < real4-linux-patch

For REAL version 5 with Linux versions pre- RedHat 5 (unsupported):
Put patch in the directory above sim5.0 and type:
patch -p0 < real5-linux-patch

Step 2: Clean directories

After patching, run clean-it in the directory sim5.0  clean-it removes the files which are autogenerated. Failing to remove these files can cause them not to be regenerated resulting in failed compilations.

Step 3: Configure

Now run Configure in the sim5.0/src directory accepting all of the defaults. You do not need to edit any of the files as suggested in the installation instructions, as this will be done for you automagically.

If you're not using version 2.9.X  of the assembler, you're done.  Go to the directory sim5.0/sim and run
simulate example.l

If you are using version 2.9.X of the assembler, then during the run of Configure you will get an error that nest.a failed to build and therefore the simulate executable won't be created.  Do the following additional steps to complete the build:

copy the state.o file into the sim5.0/src directory
type make
change to the sim5.0/sim directory
type make

you can now run:    simulate example.l