Setting up COBOL Compiler under Mac OS?

jonathan todd picture jonathan todd · Sep 20, 2013 · Viewed 11.1k times · Source

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.

Answer

Krzysztof Kaczor picture Krzysztof Kaczor · May 27, 2015

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)