facebook/duckling

Building the latest `main` branch of Duckling fails.

AbstractUmbra opened this issue · 6 comments

Specifically within Docker, if that is relevant.

My output here shows that the url and repo locally are up to date, as well as all build steps taken before the error.

Having the same issue, output is here https://pastebin.pl/view/1afbc9ac

If it helps @tahsintahsin I believe I have fixed it by adding pkg-config to the Dockerfile's dependency stages:

diff --git a/Dockerfile b/Dockerfile
index 7027a585..8c81d25a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,7 +1,7 @@
 FROM haskell:8-buster AS builder
 
 RUN apt-get update -qq && \
-  apt-get install -qq -y libpcre3 libpcre3-dev build-essential --fix-missing --no-install-recommends && \
+  apt-get install -qq -y libpcre3 libpcre3-dev build-essential pkg-config --fix-missing --no-install-recommends && \
   apt-get clean && \
   rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

Hello @AbstractUmbra ,
This solved my issue as well
Thank you very much for your help !

Corly commented

Hello,

I also have the same issue, but I am building the project in Ubuntu, no docker.

Do you have a similar fix for "normal" instalation as well? Thank you!

Hello,

I also have the same issue, but I am building the project in Ubuntu, no docker.

Do you have a similar fix for "normal" instalation as well? Thank you!

Install stack or cabal, then run stack build or cabal build

EDIT: read the readme, it has the instructions

Corly commented

You are right. Sorry :(

I missed the part about the PCRE headers for linux. After installing them the instalation works fine, this is what I run for them:
sudo apt-get install libpcre3 libpcre3-dev

Thank you for the response!