Ghc install - utils/ghc-cabal/dist-install/build/tmp/ghc-cabal: not found

Hi!

During ghc installation got this error:

...
utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist: 3: exec: utils/ghc-cabal/dist-install/build/tmp/ghc-cabal: not found
ghc.mk:967: recipe for target 'install_packages' failed
make[1]: *** [install_packages] Error 127
Makefile:51: recipe for target 'install' failed
make: *** [install] Error 2

however the file is there:

~/ghc-8.10.2> ls -l utils/ghc-cabal/dist-install/build/tmp/ghc-cabal
-rwxr-xr-x 1 1000 1000 188072 Aug  7  2020 utils/ghc-cabal/dist-install/build/tmp/ghc-cabal

The problem was that I downloaded the wrong package. x64 instead of aarch64

1 Like