phoityne / haskell-debug-adapter

Debug Adapter for Haskell debugging system.
https://hackage.haskell.org/package/haskell-debug-adapter
BSD 3-Clause "New" or "Revised" License
54 stars 8 forks source link

Ubuntu 23.04 Incompatibility Issue #34

Open Ogjerry opened 9 months ago

Ogjerry commented 9 months ago

Hi. I am running Haskell with vscode and Ubuntu 23.04. I want to install haskell-debug-adapter on my system but can never figure out a way to install that properly by command line

stack install haskell-dap ghci-dap haskell-debug-adapter

but it will always show "fail to build zib-0.6.3.0"

vector                           > Registering library for vector-0.13.1.0..
Progress 69/87        

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) using:

and

zlib                         > configure
zlib                         > Configuring zlib-0.6.3.0...
zlib                         > Error: Cabal-simple_6HauvNHV_3.10.1.0_ghc-9.6.4: Missing dependency on a
zlib                         > foreign library:
zlib                         > * Missing (or bad) header file: zlib.h
zlib                         > * Missing (or bad) C library: z

I tried to add libz.h and libz.so to the --extra-include-dirs and --extra-lib-dirs but they don't work as well. Can anyone help with the situation? Thank you.

phoityne commented 9 months ago

Hi.

Have you already installed zlib1g-dev ?

apt-get install zlib1g zlib1g-dev

Regards.

Ogjerry commented 9 months ago

@phoityne yes I already did that. Both downloaded from command line and manual downloading from zlib.net

Ogjerry commented 9 months ago

@phoityne and strangely enough, every time I type the command you texted, ubuntu will always tell me the zlib1g-dev cannot be located