add jammy docs

This commit is contained in:
FloatingGhost 2022-07-28 11:21:33 +01:00
parent 5618ae8e23
commit ce0fe56d00

View file

@ -14,13 +14,17 @@ While in theory OTP releases are possbile to install on any compatible machine,
### Detecting flavour
Paste the following into the shell:
This is a little more complex than it used to be (thanks ubuntu)
For the most part, you can paste the following into the shell:
```sh
arch="$(uname -m)";if [ "$arch" = "x86_64" ];then arch="amd64";elif [ "$arch" = "armv7l" ];then arch="arm";elif [ "$arch" = "aarch64" ];then arch="arm64";else echo "Unsupported arch: $arch">&2;fi;if getconf GNU_LIBC_VERSION>/dev/null;then libc_postfix="";elif [ "$(ldd 2>&1|head -c 9)" = "musl libc" ];then libc_postfix="-musl";elif [ "$(find /lib/libc.musl*|wc -l)" ];then libc_postfix="-musl";else echo "Unsupported libc">&2;fi;echo "$arch$libc_postfix"
```
If your platform is supported the output will contain the flavour string, you will need it later. If not, this just means that we don't build releases for your platform, you can still try installing from source.
However, if you are running ubuntu 22, we also build for you under the flavour of `ubuntu-jammy`
### Installing the required packages
Other than things bundled in the OTP release Akkoma depends on: