phoityne / hdx4vsc

Haskell Debugger Extension for Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=phoityne.phoityne-vscode
BSD 3-Clause "New" or "Revised" License
50 stars 9 forks source link

Ubuntu 23.04 incompatibility issue #35

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.