Skip to content

Cygwin fails with /c/ghcup/bin/cabal: No such file or directory #1264

@ira-peach

Description

@ira-peach

When trying to install from cygwin, the bootstrap-haskell script looks for cabal at /c/ghcup/bin/cabal. This is due to GHCUP_INSTALL_BASE_PREFIX being set to /c, yet in cygwin it should be /cygdrive/c.

Log:

$ ./bootstrap-haskell

Welcome to Haskell!
...
Press ENTER to proceed or ctrl-c to abort.
Installation may take a while.

[ Info  ] verifying digest of: gs.exe
[ Warn  ] [GHCup-00110] ghc-9.6.7 is already installed; if you really want to reinstall it, you may want to run 'ghcup install ghc --force 9.6.7'
[ Info  ] verifying digest of: gs.exe
[ Warn  ] GHC-9.6.7 appears to have no corresponding HLS-2.9.0.1 binary.
[ ...   ] Haskell IDE support may not work.
[ ...   ] You can try to either:
[ ...   ]   1. Install a different HLS version (e.g. downgrade for older GHCs)
[ ...   ]   2. Install and set one of the following GHCs: [9.10.1, 9.8.2, 9.6.6, 9.6.5, 9.4.8, 9.2.8]
[ ...   ]   3. Let GHCup compile HLS for you, e.g. run: ghcup compile hls -g 2.9.0.1 --ghc 9.6.7 --cabal-update
[ ...   ]      (see https://www.haskell.org/ghcup/guide/#hls for more information)
[ Info  ] GHC 9.6.7 successfully set as default version
[ Info  ] verifying digest of: gs.exe
[ Warn  ] [GHCup-00110] cabal-3.12.1.0 is already installed; if you really want to reinstall it, you may want to run 'ghcup install cabal --force 3.12.1.0'
./bootstrap-haskell.0: line 189: /c/ghcup/bin/cabal: No such file or directory
"cabal user-config -a extra-prog-path: C:\cygwin64\c\ghcup\bin, C:\cygwin64\home\ltdon\AppData\Roaming\cabal\bin, C:\cygwin64\c\ghcup\msys64\mingw64\bin, C:\cygwin64\c\ghcup\msys64\usr\bin -a extra-include-dirs: C:\cygwin64\c\ghcup\msys64\mingw64\include -a extra-lib-dirs: C:\cygwin64\c\ghcup\msys64\mingw64\lib -f init" failed!

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