If this package is not installed, Stack may not be ableĪlternatively, the package can be built from source as follows.Ĭreate a shell.nix file: cabal2nix -shell. In order to use stack setup with older versions of GHC or on a 32-bit system,ĪUR package installed. The package is also always rebuilt and updated when one of its Note that this version may slightly lag behind, but it should be updated within
Install it by simply doing: sudo pacman -S stack There is an official package in the Arch community repository.
Version may lag behind, so we recommend running stack upgrade after installing There is also an unofficial SUSE package. So we recommend running stack upgrade after installing it. Fedora ¶įedora includes builds of stack, but the version may lag behind, Note that this Stack version may lag behind, Versions which do not support -binary-only, just stack upgrade may work too. Stack upgrade -binary-only is recommended after installing it. Version in Ubuntu 16.04 is too old to upgrade successfully, and so in that caseįor Stretch and up, but the distribution's Stack version lags behind, so running Recommend running stack upgrade -binary-only after installing it. If you are on OS X 10.12 ("Sierra") and encounter GHC panic while building, see this issue Ubuntu ¶įor Ubuntu 16.10 and up, but the distribution's Stack version lags behind, so we GHC 7.8.4 fails with /usr/bin/ar: permission denied.If you are on OS X 10.11 ("El Capitan") and encounter either of these Open macOS_SDK_headers_for_macOS_10.14.pkg You will need to install additional headers by running: cd /Library/Developer/CommandLineTools/Packages/ Starting with macOs 10.14 (Mojave) running xcode-select -install might not be enough. in which case you should run: xcode-select -install Normally, Homebrew will install from a pre-built binary (aka "pour from aīottle"), but if brew starts trying to build everything from source (whichĪfter installation, running stack setup might fail with configure: error: cannot run C compiled programs.The Homebrew formula and bottles are unofficial and lag slightly behind new Stack releases,īut tend to be updated within a day or two.If you have the popular brew tool installed, you can just do: brew install haskell-stack Now you can run stack from the terminal.
Extract the archive and place stack somewhere on your $PATH (see.Stack may also work on older versions (YMMV). We generally test on the current version of macOS and do our best to keep it compatible with the three most recent major versions. Path section below) and you can then run stack on the command line. Unpack the archive and place stack.exe somewhere on your %PATH% (see More info, and then click on the Run anyway button that appears. Starting" warning when you try to run the installer. You may see a "Windows Defender SmartScreen prevented an unrecognized app from
If in doubt: you should prefer the 64-bit installer. Will make stack install and stack upgrade work correctly out of the box. We recommend installing to the default location with these installers, as that If you are writing a script that needs to download the latest binary, you can
Manual installation instructions for your platform below.īinaries for other operating systems are listed below, and available onįuture, we are open to supporting more OSes (to request one, pleaseīinary packages are signed with this signing key. To use your platform's package manager to install dependencies and to Note that this script will ask for root access using sudo in order For common Un*x operating systems (including macOS), all you need to do is run: curl -sSL | sh