I need to build a haskell programm for an assignment and I tried to run to run stack build and got a failure message like this
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. Unpacking GHC into /root/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.7 Did not find executable at specified path: /root/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.7.temp/ghc-9.4.7/configure
Error: Error encountered while configuring GHC with /root/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.7.temp/ghc-9.4.7/configure --prefix=/root/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.7/ run in /root/.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:
- /root/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.7.temp/
- /root/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.7/
For more information consider rerunning with --verbose flag
Configuring GHC ...
I used the --verbose flag and it honestly was not helpful at all, I also tried to run as administrator, how would I go about solving this problem.