Skip to content

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

@July541

Description

@July541

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions