Skip to content

ghcup requires make, but does not install it

ghcup fails to install GHC on a freshly installed Ubuntu because of missing make. Installing it with apt install make resolves the issue.

$ curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh

Welcome to Haskell!

This script will download and install the following binaries:
  * ghcup - The Haskell toolchain installer
            (for managing GHC/cabal versions)
  * ghc   - The Glasgow Haskell Compiler
  * cabal - The Cabal build tool

ghcup installs only into the following directory,
which can be removed anytime:
  /root/.ghcup

Press ENTER to proceed or ctrl-c to abort.
Note that this script can be re-run at any given time.


  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 6223k  100 6223k    0     0  7568k      0 --:--:-- --:--:-- --:--:-- 7562k
[ Info  ] Upgrading GHCup...
[ Warn  ] No GHCup update available

System requirements
  Install the following distro packages: build-essential curl libffi-dev libffi6 libgmp-dev libgmp10 libncurses-dev libncurses5 libtinfo5

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


[ Info  ] downloading: https://downloads.haskell.org/~ghc/8.8.4/ghc-8.8.4-i386-deb9-linux.tar.xz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current




[ Error ] Build failed with NonZeroExit 1 "make" ["install"]
"_eghcup --cache install ghc recommended" failed!

Operating system: 16.04.6 (LTS) x32

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information