Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 23.04 Incompatibility Issue #34

Open
Ogjerry opened this issue Feb 24, 2024 · 3 comments
Open

Ubuntu 23.04 Incompatibility Issue #34

Ogjerry opened this issue Feb 24, 2024 · 3 comments

Comments

@Ogjerry
Copy link

Ogjerry commented Feb 24, 2024

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
Copy link
Owner

Hi.

Have you already installed zlib1g-dev ?

apt-get install zlib1g zlib1g-dev

Regards.

@Ogjerry
Copy link
Author

Ogjerry commented Feb 27, 2024

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

@Ogjerry
Copy link
Author

Ogjerry commented Feb 27, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants