Setting up COBOL Compiler under Mac OS?

11,492

Solution 1

You can use brew to install GNU Cobol (Open Cobol). Just type:

brew install gnu-cobol

Then to compile program use:

cobc -x hello.cob

Browse --help for more option (like super nice -free)

Solution 2

Is there a particular Cobol you are trying to use. If not try

There are some very old notes for the mac here but you might be better off asking a question in the Open Cobol Help forum.

The Open-Cobol project are currently collecting sample cobol programs which might be useful to you.

Share:
11,492
Admin
Author by

Admin

Updated on July 22, 2022

Comments

  • Admin
    Admin over 1 year

    In my university, we're being taught COBOL, and I'm trying to get a head start and learn COBOL, C++, and Java before I get into the classes next year.
    Problem is; COBOL is so old, it's hard to grab support for it in mac (my laptop is a mac). I understand it runs fine on Mac, but finding someone who can explain how to set up the compiler is another story.

  • Joe Zitzelberger
    Joe Zitzelberger about 10 years
    The install instructions for Linux/Unix will work on a mac if you approach if from a terminal window.
  • Paul Bartlett
    Paul Bartlett over 6 years
    Awesome, worked perfect for me on Mac OS X 10.11 Sierra.
  • Jacopofar
    Jacopofar about 5 years
    Works on macOS Mojave, too