rodrigosantosbr

How To Install gnuCOBOL for cygwin

Jun 9th, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!

packages

libdb4.8 (Database)
libdb5.3 (Database)
libdb-devel (Database)
gcc-core (Devel)
gcc-g++ (Devel)
gdb (Devel)
gettext (Text)
libncurses-devel (Devel)
libtool (Devel)
make (Devel)
automake1.5 (Devel)
automake1.9 (Devel)
Autoconf (Devel)
Automake (Devel)
Libtool (Devel)
m4 (Interpreters)
Texinfo (Devel)
Bison (Devel)
Flex (Devel)
libiconv (Libs)
libgmp-devel (Libs)
ncurses (Base)
curl (Net)
wget (Web)

Compile gnuCOBOL 2.2

download manually gnuCOBOL-2.2_win.7z and place it in your cygwin /tmp directory:

https://sourceforge.net/projects/open-cobol/files/gnu-cobol/2.2/gnucobol-2.2_win.7z/download

Compile the Sources

Open a cygwin terminal and type these commands to compile and install gnuCOBOL:

cd /tmp/gnucobol-2.2 && ./configure && make && make check && make install

Test your Install
Compilation and installation is done, now you can test your COBOL compiler.

Test cobc version:
cobc -v

Create a test file

vi myFirstCob.cob

$ cobc -x -free myFirstCob.cob
$ ./myFirstCob

Add Comment
Please, Sign In to add comment