Skip to content

can't compile cobol4j  #508

@alirezag

Description

@alirezag

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions