Install Software

How to install the various components to run COBOL on Pop!_OS.

The Environment:

  • The Operating System was created using the pop-os_22.04_amd64_intel_53.iso.

  • The version of IBM DB2-LUW is v12.1.1_linuxx64_server_dec.tar.gz.

  • The version of GnuCOBOL is gnucobol-3.2.tar.lz.

A word of caution about the userid you selected as you install(ed) the OS

You create a userid when you install the OS and will probably use that userid to run some db2 commands. IBM DB2 LUW has some restrictions regarding the OS userid!

User IDs have the following restrictions and requirements:

  • Must have a primary group other than guests, admins, users, and local.
  • Can include lowercase letters (a-z), numbers (0-9), and the underscore character (_).
  • Cannot be longer than eight characters
  • Cannot begin with IBM, SYS, SQL, or a number.
  • Cannot be a DB2 reserved word (USERS, ADMINS, GUESTS, PUBLIC, or LOCAL), or an SQL reserved word.
  • Cannot use any user IDs with root privilege for the DB2 instance ID, DAS ID, or fenced ID.
  • Cannot include accented characters.

This threw me for awhile because I wanted to use “sysop” as the userid and then the DB2 LUW install would fail.


Install GnuCOBOL.

Version GnuCOBOL 3.2.0

Install IBM DB2-LUW

Version v12.1.1

Install PostgreSQL

Version v14