Hello, I wanted to experiment with web development in Haskell and I decided to try out the yesod framework, however following the suggested steps:
stack new my-project yesodweb/simple
cd my-project
stack install yesod-bin --install-ghc
the build process fails with the following error:
Error: [S-7282]
Stack failed to execute the build plan.
While executing the build plan, Stack encountered the error:
[S-7011]
While building package zlib-0.6.3.0 (scroll up to its section to see the error)
with the zlib
logs being:
zlib > configure
zlib > Configuring zlib-0.6.3.0...
zlib > Cabal-simple_w2MFVN35_3.6.3.0_ghc-9.2.8: Missing dependency on a foreign
zlib > library:
zlib > * Missing (or bad) header file: zlib.h
zlib > * Missing (or bad) C library: z
zlib > This problem can usually be solved by installing the system package that
zlib > provides this library (you may need the "-dev" version). If the library is
zlib > already installed but in a non-standard location then you can use the flags
zlib > --extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the
zlib > library file does exist, it may contain errors that are caught by the C
zlib > compiler at the preprocessing stage. In this case you can re-run configure
zlib > with the verbosity flag -v3 to see the error messages.
zlib > If the header file does exist, it may contain errors that are caught by the C
zlib > compiler at the preprocessing stage. In this case you can re-run configure
zlib > with the verbosity flag -v3 to see the error messages.
I’m currently on Fedora 42 with the zlib
library and its development version provided by the package zlib-ng
and the zlib.h
file in the standard location /usr/include
hence I’m unsure of the cause of this error, any suggestion or help would be greatly appreciated.