Attempto / ACE-in-GF

Attempto Controlled English (http://attempto.ifi.uzh.ch/) in Grammatical Framework (https://www.grammaticalframework.org/)
54 stars 10 forks source link

doesn't build #16

Open tmbdev opened 6 months ago

tmbdev commented 6 months ago

I tried building this from scratch, but no luck.

The top-level build (bash make-pgf.bash) doesn't actually download the necessary dictionary.

Trying to download it myself fails.

Here is my Dockerfile:

# Use the official Ubuntu 22.04 LTS base image
FROM ubuntu:22.04

# Set environment variables to non-interactive
ENV DEBIAN_FRONTEND=noninteractive

# Install necessary packages including GHC and Cabal
RUN apt-get update && apt-get install -y \
    curl \
    git \
    software-properties-common \
    build-essential \
    libgmp-dev \
    zlib1g-dev \
    ghc \
    cabal-install \
    ripgrep

RUN apt-get install -y swi-prolog

# Update Cabal and install GF
RUN cabal update \
    && cabal install gf-3.11

# Set the PATH environment variable to include the Cabal installation directory
ENV PATH="/root/.cabal/bin:${PATH}"

# Verify GF installation
RUN gf --version

RUN git config --global user.email "nobody@nowhere.com"
RUN git config --global user.name "Docker"
RUN git config --global --list

# Clone the ACE-in-GF repository
RUN git clone https://github.com/Attempto/ACE-in-GF.git /ACE-in-GF

# Build ACE-in-GF using GF
WORKDIR /ACE-in-GF
# RUN gf --make ACE.gf
#RUN bash make-pgf.bash

WORKDIR /ACE-in-GF/words/clex
RUN bash download_modified.sh
RUN build.sh
Kaljurand commented 5 months ago

The Clex lexica listed in https://github.com/Attempto/ACE-in-GF/tree/master/words/clex seem to be all available, so I'm not sure why the download would fail. Can you download with Curl:

curl -L https://raw.githubusercontent.com/danshaub/Clex/master/clex_lexicon.pl > clex.pl

In general, the ACE-in-GF project has not been maintained for several years, so you might encounter more complicated issues going forward... :(