Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doesn't build #16

Open
tmbdev opened this issue Mar 21, 2024 · 1 comment
Open

doesn't build #16

tmbdev opened this issue Mar 21, 2024 · 1 comment

Comments

@tmbdev
Copy link

tmbdev commented Mar 21, 2024

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 "[email protected]"
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
Copy link
Member

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... :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants