Running the alternative utility

To install COBOL for Linux® on x86 using the default installation procedure, the rpm utility is the alternative utility on RHEL or SLES, and the dpkg utility is the alternative utility on Ubuntu.

On RHEL

  1. Install the prerequisite software packages using this command:
    sudo dnf install gcc glibc.i686 glibc-devel.i686 libgcc.i686 libstdc++.i686 libquadmath.i686
  2. Ensure that your current working directory contains all of the packages for COBOL for Linux on x86 1.2 from either the DVD, .iso image, or electronic image, and then install the compiler packages into the default location, /opt/ibm, the compiler runtime package into the default location, /opt/ibm/cobol/rte, and the debug engine into the default location, /opt/ibm/cobol/debug:
    • For users with physical media: If the product DVD or .iso image is mounted on the /cdrom directory in the system, issue the following commands:
      cd /cdrom
      rpm -Uvh ./images/rhel/*.rpm
    • For users with an electronic download: If the tar.gz archive is located in the current directory, issue the following commands:
      tar -xvzf  package_name.tar.gz
      rpm -Uvh ./images/rhel/*.rpm

On SLES

  1. Install the prerequisite software packages using this command:
    sudo dnf install gcc glibc glibc-devel libgcc libstdc++
  2. Ensure that your current working directory contains all of the packages for COBOL for Linux on x86 1.2 from either the DVD, .iso image, or electronic image, and then install the compiler packages into the default location, /opt/ibm, the compiler runtime package into the default location, /opt/ibm/cobol/rte, and the debug engine into the default location, /opt/ibm/cobol/debug:
    • For users with physical media: If the product DVD or .iso image is mounted on the /cdrom directory in the system, issue the following commands:
      cd /cdrom
      rpm -Uvh ./images/sles/*.rpm
    • For users with an electronic download: If the tar.gz archive is located in the current directory, issue the following commands:
      tar -xvzf  package_name.tar.gz
      rpm -Uvh ./images/sles/*.rpm

On Ubuntu

  1. Install the prerequisite software packages using Advanced Package Tool (apt):
    sudo apt-get install gcc-multilib gcc ibc6-dev libgcc1 libstdc++6 libc6:i386 libc6-dev:i386 libgcc1:i386 libstdc++6:i386 
  2. Ensure that your current working directory contains all of the packages for COBOL for Linux on x86 1.2 from either the DVD, .iso image, or electronic image, and then install the compiler packages into the default location, /opt/ibm, the compiler runtime package into the default location, /opt/ibm/cobol/rte, and the debug engine into the default location, /opt/ibm/cobol/debug:
    • For users with physical media: If the product DVD or .iso image is mounted on the /cdrom directory in the system, issue the following commands:
      cd /cdrom
      dpkg -iG ./images/ubuntu/*.deb
    • For users with an electronic download: If the tar.gz archive is located in the current directory, issue the following commands:
      tar -xvzf  package_name.tar.gz
      dpkg -iG ./images/ubuntu/*.deb

What to do next

After you complete the previous steps, proceed to Post-installation setup tasks such as Querying for installed packages, Setting environment variables, or Compiling a Hello World program to test the compiler installation.