First thing to say: I'm a non-technical user, so I'm in at the deep end here! I've downloaded gnucobol-3.2 onto my Mac and ran ./configure && make && make install and this worked, to a point, but it failed with
checking mpir.h presence... no
checking for mpir.h... no
configure: error: in /Users/grahamcarter/Downloads/gnucobol-3.2':
configure: error: neither GMP nor MPIR library are found, but one of those is mandatory
Seeconfig.log' for more details
Is anyone happy to hold my hand through this installation process?! Thank you. I used to work on VMS but have very little Unix knowledge and don't know where to go to find the missing packages,
Thank you!
Graham
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
$>/bin/bash-c"$(curl-fsSLhttps://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"# get homebrew, if not avalailable yet
$>brewinstallgnu-cobol# get gnucobol
$>cobc-xjvsome.cob# create a first COBOL executable and execute it, with verbose output
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2024-12-03
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" # get homebrew, if not avalailable yet
$> brew install gnu-cobol # get gnucobol
$> cobc -xjv some.cob # create a first COBOL executable and execute it, with verbose output
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
First thing to say: I'm a non-technical user, so I'm in at the deep end here! I've downloaded gnucobol-3.2 onto my Mac and ran ./configure && make && make install and this worked, to a point, but it failed with
checking mpir.h presence... no
checking for mpir.h... no
configure: error: in
/Users/grahamcarter/Downloads/gnucobol-3.2': configure: error: neither GMP nor MPIR library are found, but one of those is mandatory See
config.log' for more detailsIs anyone happy to hold my hand through this installation process?! Thank you. I used to work on VMS but have very little Unix knowledge and don't know where to go to find the missing packages,
Thank you!
Graham
You have two options:
I personally would tend to the second option, using homebrew.
I don't run MacOS, but from https://formulae.brew.sh/formula/gnu-cobol it looks like the process would be
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" # get homebrew, if not avalailable yet
$> brew install gnu-cobol # get gnucobol
$> cobc -xjv some.cob # create a first COBOL executable and execute it, with verbose output