opensourcecobol / opensourcecobol4j

A new version of opensourcecobol. Translate COBOL to Java.
https://opensourcecobol.github.io/opensourcecobol4j/
GNU General Public License v3.0
72 stars 35 forks source link

can't compile cobol4j #508

Open alirezag opened 3 hours ago

alirezag commented 3 hours ago

when I try to build a ubuntu image to compile and install the framework I get the following error while running make command.

docker build . -t $SERVICE_NAME -f Dockerfile.ubuntu
FROM ubuntu:24.04

LABEL project="COBOL Modernization"
LABEL maintainer="Alireza Goudarzi <alireza.goudarzi@gmail.com>"

RUN <<EOF
apt update && apt upgrade -y
apt-get install openjdk-21-jdk
apt-get install openjdk-21-jre
apt-get install -y default-jdk build-essential bison flex gettext texinfo libgmp-dev autoconf
curl -L -o opensourcecobol4j-v1.1.2.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.1.2.tar.gz
tar zxvf opensourcecobol4j-v1.1.2.tar.gz
cd opensourcecobol4j-1.1.2
./configure --prefix=/usr/
make
sudo make install
EOF

# copy local directory opensourcecobo4j to /app/opensourcecobo4j
COPY opensourcecobol4j /app/opensourcecobol4j

ENTRYPOINT /bin/bash
Screenshot 2024-10-15 at 14 31 24
alirezag commented 3 hours ago

has anyone been able to compile cobol4j in a docker?