Author: Eiko

Tags: Debug, Error, Stack, Ubuntu

Time: 2024-09-15 12:55:28 - 2024-11-09 08:16:53 (UTC)

Debug An Error Message Of Stack On Ubuntu

While trying to build my website project with stack on mt’s new ubuntu server, I got a strange error message saying that stack is unable to execute the build plan, in the package digest-0.0.1.7. This is weird because I have successfully built the project on my local machine. I have no idea what is going on. To diagnose the problem I tried

stack build --verbose

and I turned to the part of the warnings around the package digest-0.0.1.7, I see a warning that says “pkg-config version >= 0.9.0 is required, but could not be found”. This is a hint that we need to install the pkg-config package. I installed it with

sudo apt install pkg-config

and now the project builds successfully, good! owo owo