git-mediate icon indicating copy to clipboard operation
git-mediate copied to clipboard

Haskell stack error when installing on Ubuntu

Open Svalorzen opened this issue 1 year ago • 0 comments

Here is the output of my installation run:

$ stack install
Stack has not been tested with GHC versions above 8.10, and using 9.4.7, this may fail
Preparing to install GHC (tinfo6) to an isolated location.
This will not interfere with any system-level installation.
Downloaded ghc-tinfo6-9.4.7.                                      
Did not find executable at specified path: /home/svalorzen/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.7.temp/ghc-9.4.7/configure
                   
Error: Error encountered while configuring GHC with
         /home/svalorzen/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.7.temp/ghc-9.4.7/configure --prefix=/home/svalorzen/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.7/
         run in /home/svalorzen/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.7.temp/ghc-9.4.7/
       
       The following directories may now contain files, but won't be used by stack:
         - /home/svalorzen/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.7.temp/
         - /home/svalorzen/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.7/
       
       For more information consider rerunning with --verbose flag
       
Configuring GHC ...

I've looked in the folder, and it seems that the name of the folder the configuration file is in is wrong. The above requests /home/svalorzen/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.7.temp/ghc-9.4.7/, but I actually have the folder /home/svalorzen/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.7.temp/ghc-9.4.7-x86_64-unknown-linux/

Svalorzen avatar Dec 07 '23 13:12 Svalorzen