Skip to content

Commit 4ec7cc1

Browse files
milancurcicawvwgk
andauthored
Add section on downloading binaries (#28)
Co-authored-by: Sebastian Ehlert <[email protected]>
1 parent d7318d4 commit 4ec7cc1

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

pages/how-to/installation.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,41 @@
22

33
This how-to guide covers the installation of the Fortran package manager (fpm) on various platforms.
44

5+
## {fab}`apple` {fab}`linux` {fab}`windows` Download binaries
6+
7+
Binaries for macOS, Linux, and Windows (all on x86-64) are available for download for each release of fpm, as well as the latest (bleeding edge) release which mirrors the latest commit in the main branch of fpm.
8+
9+
Navigate to [fpm releases](https://github.com/fortran-lang/fpm/releases) to see all available releases.
10+
The downloadable files are available at the bottom of each release section under *Assets*.
11+
Click on the appropriate link based on your OS.
12+
For example, to download a macOS fpm binary, click on the link that has *macos* in its name.
13+
After downloading, you will need to make your binary executable.
14+
On Linux and macOS, you can do this by typing
15+
16+
```{code-block} bash
17+
chmod +x fpm-0.5.0-linux-x86_64
18+
```
19+
20+
Optionally, place the binary in a directory that is globally accessible (*i.e.* in the ``PATH`` environment variable on Linux and macOS).
21+
You can also rename the binary to just *fpm* for easier use.
22+
23+
For Windows, both a self-contained binary and a Windows Installer for fpm are available.
24+
25+
:::{note}
26+
Links that end with ``.sha256`` provide the cryptographic hashes that you can use to verify if the download of your binary was successful.
27+
To verify the integrity of the downloaded binary the checksum can be computed locally and compared with the one provided in the release
28+
29+
```{code-block} text
30+
❯ openssl sha256 -r fpm-0.5.0-linux-x86_64
31+
387782f29b19eb6fbf14dd5cef76907a4c9cb6d20726d5508a78225ccd131ca8 *fpm-0.5.0-linux-x86_64
32+
❯ cat fpm-0.5.0-linux-x86_64.sha256
33+
387782f29b19eb6fbf14dd5cef76907a4c9cb6d20726d5508a78225ccd131ca8 fpm-0.5.0-linux-x86_64
34+
```
35+
36+
If the checksums mismatch, the download was most likely incomplete and the binary non-functional.
37+
In this case, retry the download of the binary and confirm that the checksums match.
38+
:::
39+
540

641
## {fab}`windows` MSYS2 package manager
742

0 commit comments

Comments
 (0)