facebook / duckling

Language, engine, and tooling for expressing, testing, and evaluating composable language rules on input strings.
Other
4.05k stars 720 forks source link

Building the latest `main` branch of Duckling fails. #671

Closed AbstractUmbra closed 2 years ago

AbstractUmbra commented 2 years ago

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.

tahsintahsin commented 2 years ago

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

AbstractUmbra commented 2 years ago

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/*
tahsintahsin commented 2 years ago

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

Corly commented 2 years ago

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!

chessai commented 2 years ago

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 2 years ago

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!