If you are currently running Micro Focus COBOL V4.0, you first deinstall that version before installing V4.1.30. For instructions on how to remove V4.0, refer to "Deinstalling V4.0.x and V4.1" later in this section.
To install V4.1.30, perform the following steps:
At your UNIX shell prompt become superuser.
$ su -
Set the UNIX file creation mask:
# umask 022
If it does not already exist, create and go to the directory where the product will be installed:
# mkdir -p /opt/lib/cobol
# cd /opt/lib/cobol
If it is not already mounted, mount the cdrom device:
The cdrom device is normally cd0 or cd1. Check your system for the current device name used. These examples use cdrom device cd0 and mount directory /cdrom.
For the COBOL 4.1.30 Developer Suite or Application Server CD-ROM, use the following mount command:
# /etc/devbuild vtoc /dev/rdsk/cd0
# /etc/mount -r /dev/dsk/cd0s0 /cdrom
For the COBOL 4.1.30 Documentation CD-ROM, use the following mount command:
# /etc/mount -F cdfs -r /dev/dsk/cd0 /cdrom
(Note that this last command corrects both the previous release notes and the Merant CD-ROM insert by specifying cd0 instead of cd0s0.)
Remember that the device must be unmounted before the CD-ROM can be removed from the cdrom device:
# /etc/umount /cdrom
Insert the CD into the cdrom drive and extract the its contents:
When the contents of the CD have been extracted, execute the install script:
# sh ./install
When the install script asks you where the driver programs are to be installed, choose the default.
The install script reminds you to set the environment variables COBDIR, LD_LIBRARY_PATH, and PATH to absolute pathnames, not using any symbolic links. For more information, refer to the following section, "Setting Environment Variables."
Before using the Micro Focus COBOL software, you must set the following environment variables. These variables can be set in a startup file or at a UNIX shell prompt. The following example shows how to set these variables using a Bourne shell:
$ COBDIR=/opt/lib/cobol; export COBDIR $ PATH=/opt/bin:$PATH;export PATH $ LD_LIBRARY_PATH=$COBDIR/coblib:$LD_LIBRARY_PATH $ export LD_LIBRARY_PATH $ OBJ_FORM=ELF; export OBJ_FORM
To run successfully, Micro Focus COBOL requires a minimum of 5 MBytes of temporary disk space for each COBOL user. Each additional user requires an increase in disk space by the combined size of 2 MBytes plus the size of their typical COBOL application executable or intermediate source file. For example, for an additional user with a 1 MByte size COBOL application, add 3 MBytes temporary disk space for that user.
The amount of temporary disk space that each user requires can increase significantly when SORT or MERGE operations are performed, as these features can create temporary work files related to the size of the files being sorted or merged.
Temporary work files are put in the directory specified by the TMPDIR environment variable. If TMPDIR is not set, the system default temporary directory is used (as defined by the value of P_tmpdir in stdio.h.
Before installing V4.1.30, you should deinstall V4.0.x and V4.1.x. Note that you may want to save a copy of the previous version by using the mv command on the following directories: /opt/bin and /opt/lib/cobol.
To deinstall V4.0.x or V4.1.x, perform the following steps:
At your UNIX shell prompt become superuser:
$ su -
Go to the directory where V4.0.x or V4.1.x is installed:
# cd /opt/lib/cobol
Execute the deinstall script:
# sh ./deinstall
Once you have deinstalled the previous version, install the new version by following the instructions in "Installing Micro Focus COBOL V4.1.30."