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

Failed to install ghc8.0 and ghc8.2 on ubuntu-24.04 #101

Open
July541 opened this issue Dec 17, 2024 · 3 comments
Open

Failed to install ghc8.0 and ghc8.2 on ubuntu-24.04 #101

July541 opened this issue Dec 17, 2024 · 3 comments

Comments

@July541
Copy link

July541 commented Dec 17, 2024

Github runners currently switched ubuntu-latest from ubuntu-22.04 to ubuntu-24.04, which made ghc8.0 and ghc 8.2 install failed. See debug log here.

That is because libncurses5 and libtinfo5 install failed:

setup/src/installer.ts

Lines 278 to 286 in dd344bc

async function aptLibNCurses5(): Promise<boolean> {
core.info(
`Installing libcurses5 and libtinfo5 using apt-get (for ghc < 8.3)`
);
const returnCode = await exec(
`sudo -- sh -c "apt-get update && apt-get -y install libncurses5 libtinfo5"`
);
return returnCode === 0;

And then /usr/local/.ghcup/tmp/ghcup-3ba2aace02c1cc3e/usr/local/.ghcup/ghc/8.2.2/lib/ghc-8.2.2/bin/ghc-pkg: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory.

Related issue: haskell/ghcup-hs#947

@andreasabel
Copy link
Member

Thanks for the heads up!

So I suppose GHC 8.0 and 8.2 will become unsupported. (They are already not supported by latest Stack anymore.)
Or do you know an easy fix?

@July541
Copy link
Author

July541 commented Dec 18, 2024

Adding an extra source can fix it, see my test here.

But I'm not sure if it is worth to do.

@andreasabel
Copy link
Member

Well if it is just one line...
I am happy to get this as a PR (after some cleanup and maybe a comment added to the deb command that this is necessary for ubuntu 24.04.

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