CentOS-specific preparations:
yum install ncurses-devel gcc-c++
localedef -c -f UTF-8 -i en_US en_US.UTF-8
export LC_ALL=en_US.UTF-8
Building the binary distribution:
stack setup
stack install alex happy
stack exec --no-ghc-package-path bash # the --no-ghc-package-path is important!
pacman -Syuu
pacman -S --needed git tar bsdtar binutils autoconf make xz zstd \
curl libtool automake python python3 p7zip patch ca-certificates \
mingw-w64-$(uname -m)-gcc \
mingw-w64-$(uname -m)-python3 \
mingw-w64-$(uname -m)-python3-sphinx \
mingw-w64-$(uname -m)-tools-git
./configure --enable-tarballs-autodownload
# copy the mk/build.mk.sample to mk/build.mk
# for GHC < 9.0.1 - add INTEGER_LIBRARY=integer-simple
# for GHC >= 9.0.1 - add BIGNUM_BACKEND=native
make
make binary-dist