Install COBOL and check the version
| Install GnuCOBOL | |
| cobc --version | |
| Other compilers |
Install GnuCOBOL
GnuCOBOL is the open source COBOL compiler used throughout this course. On Debian and Ubuntu it lives in the system repositories, so one command is enough:
sudo apt update
sudo apt install gnucobol
cobc --version
Check the compiler after the install. The first line shows GnuCOBOL itself:
cobc --version
Other compilers
GnuCOBOL is enough for every example in this course. Commercial compilers (IBM Enterprise COBOL, Micro Focus) add mainframe-only features like CICS and Db2 precompilers.
If your distro ships an older GnuCOBOL, that is fine: every lesson works with GnuCOBOL 3.0 and newer.
Next: cobc: the COBOL compiler
Article author: Arthur Isaev