Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

juanstdio

macrumors member
Original poster
Jun 3, 2021
63
117
Argentina
Hello,

Since I searched the internet about this and didn't found any Binary or instructions, I'm shareing how I sucessfully complied gnu-cobol-1.1 in my 12" Powerbook G4! now I can create cobol code and build binaries :apple:

I wanted to use leopard.sh but I didn't found the package there.
First I tried with Tigerbrew directly (open-cobol) but is not available so it failed on that step (maybe because it was renamed to gnucobol?).
However, brew installed the required packages gmp and berkeley-db :
1693621671637.png

Then I used wget to download GnuCOBOL from SourceForge and executed

$ tar -xvzf gnu-cobol-1.1.tar.gz
afer that, I jumped inside the directory and executed:
./configure
make
make install
it gave a couple of warnings during compilation.

At the end you can check running:
make check

if everything is fine, all test will pass:
1693622130150.png


And finally, a test program that I wrote.. was sucessfully compiled!! (of course the dose of dopamine was included lol)

1693622338100.png

Hopefully this will help sombody to have fun!

I'm sure that commercial software existed out there for Mac's, but I got no luck finding those in macintoshgarden nor MRepository.

Regards
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.