In case anyone is interested in installing on MAC OS X Catalina
1. Download latest version of GNUCobol
2. untar into directory of your choice
3. download BerkelyDB from oracle
* untar
* cd into the BerkelyDB/build_unix folder
* run '../dist/config'
* run 'make'
4. Change to the GNUCobol Folder You may have to BREW install a couple of libraries. I found I had to install GMP and MPIR libraries with brew
5. run ./configure --with-db=/usr/local/BerkeleyDB.18.1
* or the version of BerkeleyDB you downloaded
6. run 'make'
7. run 'make install'
8. cobc -v
AND YOU'RE DONE!
~/gnucobol-3.1.2
$ cobc -v
cobc (GnuCOBOL) 3.1.2.0
Built Sep 24 2021 12:31:22 Packaged Dec 23 2020 12:04:58 UTC
C version "4.2.1 Compatible Apple LLVM 11.0.3 (clang-1103.0.32.62)"
loading standard configuration file 'default.conf'
cobc: error: no input files
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You possibly want to check with cobc --info if you have a full-featured compiler - or need to add curses, libxml2, libjson-c / cJSON to achieve this.
Note: these (ok all but curses) are new optional dependencies - looking at DEPENDENCIES gives a good picture.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
$cobc--infocobc(GnuCOBOL)3.1.2.0Copyright(C)2020FreeSoftwareFoundation,Inc.LicenseGPLv3+:GNUGPLversion3orlater<https://gnu.org/licenses/gpl.html>Thisisfreesoftware;seethesourceforcopyingconditions.ThereisNOwarranty;notevenforMERCHANTABILITYorFITNESSFORAPARTICULARPURPOSE.WrittenbyKeisukeNishida,RogerWhile,RonNorman,SimonSobisch,EdwardHartBuiltSep24202112:31:22PackagedDec23202012:04:58UTCCversion"4.2.1 Compatible Apple LLVM 11.0.3 (clang-1103.0.32.62)"buildinformationbuildenvironment:x86_64-apple-darwin19.6.0CC:gccCversion:"4.2.1 Compatible Apple LLVM 11.0.3(clang-1103.0.32.62)"CPPFLAGS:-I/usr/local/opt/node@10/include-I/usr/local/Cellar/gmp/6.2.1_1/includeCFLAGS:-O2-pipeLD:/Volumes/BigBlue/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ldLDFLAGS:-L/usr/local/opt/node@10/libGnuCOBOLinformationCOB_CC:gccCOB_CFLAGS:-pipe-I/usr/local/opt/node@10/include-I/usr/local/Cellar/gmp/6.2.1_1/include-I/usr/local/include-Wno-unused-fsigned-char-Wno-pointer-sign-Qunused-argumentsCOB_DEBUG_FLAGS:-ggdb3-fasynchronous-unwind-tablesCOB_LDFLAGS:-L/usr/local/opt/node@10/libCOB_LIBS:-L/usr/local/lib-lcob-lmCOB_CONFIG_DIR:/usr/local/share/gnucobol/configCOB_COPY_DIR:/usr/local/share/gnucobol/copyCOB_MSG_FORMAT:GCCCOB_OBJECT_EXT:oCOB_MODULE_EXT:dylibCOB_EXE_EXT:64bit-mode:yesBINARY-C-LONG:8bytesendianness:little-endiannativeEBCDIC:noextendedscreenI/O:ncursesvariablefileformat:0sequentialfilehandler:built-inindexedfilehandler:disabledmathematicallibrary:GMPXMLlibrary:libxml2JSONlibrary:notfound
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
So you likely want to add libjson-c (or just place cJSON.c+h into the libcob folder before running configure) and include BDB or one of the other handlers for ORGANIZATION INDEXED - in any case see DEPENDENCIES file for details.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In case anyone is interested in installing on MAC OS X Catalina
1. Download latest version of GNUCobol
2. untar into directory of your choice
3. download BerkelyDB from oracle
* untar
* cd into the BerkelyDB/build_unix folder
* run '../dist/config'
* run 'make'
4. Change to the GNUCobol Folder
You may have to BREW install a couple of libraries. I found I had to install GMP and MPIR libraries with brew
5. run ./configure --with-db=/usr/local/BerkeleyDB.18.1
* or the version of BerkeleyDB you downloaded
6. run 'make'
7. run 'make install'
8. cobc -v
AND YOU'RE DONE!
~/gnucobol-3.1.2
$ cobc -v
cobc (GnuCOBOL) 3.1.2.0
Built Sep 24 2021 12:31:22 Packaged Dec 23 2020 12:04:58 UTC
C version "4.2.1 Compatible Apple LLVM 11.0.3 (clang-1103.0.32.62)"
loading standard configuration file 'default.conf'
cobc: error: no input files
You possibly want to check with
cobc --infoif you have a full-featured compiler - or need to add curses, libxml2, libjson-c / cJSON to achieve this.Note: these (ok all but curses) are new optional dependencies - looking at DEPENDENCIES gives a good picture.
So you likely want to add libjson-c (or just place cJSON.c+h into the libcob folder before running configure) and include BDB or one of the other handlers for
ORGANIZATION INDEXED- in any case see DEPENDENCIES file for details.Thanks for the heads up. Reconfigured and all is good.