Skip to content

Commit c14cc4d

Browse files
committed
Update docs on installing for macOS/AArch64
1 parent 850ebfa commit c14cc4d

File tree

2 files changed

+28
-44
lines changed

2 files changed

+28
-44
lines changed

doc/README.md

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,7 @@ Windows.
9393
M2 chip. These chips use an architecture known as ARM64 or AArch64.
9494

9595
For Mac computers with Apple silicon, the easiest way to install Stack
96-
directly (rather than use GHCup) is to obtain the 'unofficial'
97-
`osx-aarch64` binary distribution released by the GHCup developers and
98-
copy it to a location on the PATH. `*.tar.gz` archive files containing
99-
those binary distributions are available at the directories here:
100-
[:material-cloud-download-outline:](https://downloads.haskell.org/ghcup/unofficial-bindists/stack/).
101-
102-
It is still possible to use the commands:
96+
directly (rather than use GHCup) is to command:
10397

10498
~~~text
10599
curl -sSL https://get.haskellstack.org/ | sh
@@ -111,19 +105,14 @@ Windows.
111105
wget -qO- https://get.haskellstack.org/ | sh
112106
~~~
113107

114-
However, those commands will download and install the version of Stack
115-
for Intel-based Mac computers. Mac computers with Apple silicon will
116-
use Apple's
117-
[Rosetta 2 application](https://support.apple.com/en-gb/HT211861) to
118-
use that version of Stack.
119-
120-
Apple's Terminal application will not detect automatically that Rosetta
121-
has not yet been installed. Rosetta can be manually installed by
122-
commanding:
108+
!!! note
123109

124-
~~~text
125-
softwareupdate --install-rosetta
126-
~~~
110+
The script at [get.haskellstack.org](https://get.haskellstack.org/)
111+
will ask for root access using `sudo`. It needs such access in order
112+
to use your platform's package manager to install dependencies and
113+
to install to `/usr/local/bin`. If you prefer more control, follow
114+
the manual installation instructions in the
115+
[install and upgrade guide](install_and_upgrade.md).
127116

128117
=== "Windows"
129118

doc/install_and_upgrade.md

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -295,19 +295,8 @@ GitHub repository.
295295
Mac computers with Apple silicon have an M1, M1 Pro, M1 Max, M1 Ultra or
296296
M2 chip. These chips use an architecture known as ARM64 or AArch64.
297297

298-
The Stack repository uses GitHub-hosted runners to create binary
299-
distributions for macOS. GitHub-hosted runners are not expected to be
300-
available for macOS on Apple silicon until July to September 2023.
301-
302-
Consequently, for Mac computers with Apple silicon, the easiest way to
303-
install Stack directly (rather than use GHCup) is to obtain the
304-
'unofficial' `osx-aarch64` binary distribution released by the GHCup
305-
developers and copy it to a location on the PATH. `*.tar.gz` archive
306-
files containing those binary distributions are available at the
307-
directories here:
308-
[:material-cloud-download-outline:](https://downloads.haskell.org/ghcup/unofficial-bindists/stack/).
309-
310-
It is still possible to use the commands:
298+
For Mac computers with Apple silicon, the easiest way to install Stack
299+
directly (rather than use GHCup) is to command:
311300

312301
~~~text
313302
curl -sSL https://get.haskellstack.org/ | sh
@@ -319,19 +308,13 @@ GitHub repository.
319308
wget -qO- https://get.haskellstack.org/ | sh
320309
~~~
321310

322-
However, those commands will download and install the version of Stack
323-
for Intel-based Mac computers. Mac computers with Apple silicon will
324-
use Apple's
325-
[Rosetta 2 application](https://support.apple.com/en-gb/HT211861) to
326-
use that version of Stack.
327-
328-
Apple's Terminal application will not detect automatically that Rosetta
329-
has not yet been installed. Rosetta can be manually installed by
330-
commanding:
311+
!!! note
331312

332-
~~~text
333-
softwareupdate --install-rosetta
334-
~~~
313+
The script at [get.haskellstack.org](https://get.haskellstack.org/)
314+
will ask for root access using `sudo`. It needs such access in order
315+
to use your platform's package manager to install dependencies and
316+
to install to `/usr/local/bin`. If you prefer more control, follow
317+
the manual installation instructions below.
335318

336319
The installation of Stack or some packages (e.g. `network`) requiring C
337320
source compilation might fail with `configure: error: C compiler cannot
@@ -360,6 +343,18 @@ GitHub repository.
360343
compile x86-64 objects and attempt to link them with existing ARM64
361344
libraries, resulting in the error above.
362345

346+
### Manual download
347+
348+
* Click
349+
[:material-cloud-download-outline:](https://get.haskellstack.org/stable/osx-aarch64.tar.gz)
350+
to download an archive file with the latest release for AArch64
351+
architectures.
352+
353+
* Extract the archive and place `stack` somewhere on your PATH (see the
354+
[Path](#path) section below).
355+
356+
* Now you can run Stack from the command line in a terminal.
357+
363358
### Using Homebrew
364359

365360
[Homebrew](https://brew.sh/) is a popular package manager for macOS. If you

0 commit comments

Comments
 (0)