Skip to content

Commit e4c4ab4

Browse files
am11jkotas
andauthored
Add fedora in install script (#104860)
* Add fedora in install script * Update linux-requirements.md --------- Co-authored-by: Jan Kotas <[email protected]>
1 parent c15c5d7 commit e4c4ab4

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

docs/workflow/requirements/linux-requirements.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ Below are the requirements for toolchain setup, depending on your environment. P
2121

2222
Minimum RAM required to build is 1GB. The build is known to fail on 512 MB VMs ([dotnet/runtime#4069](https://github.com/dotnet/runtime/issues/4069)).
2323

24+
You can use this helper script to install dependencies on some platforms:
25+
26+
```bash
27+
sudo eng/install-native-dependencies.sh
28+
# or without 'sudo' if you are root
29+
```
2430

2531
### Debian-based / Ubuntu
2632

@@ -48,8 +54,8 @@ Install the following packages for the toolchain:
4854

4955
```bash
5056
sudo apt install -y cmake llvm lld clang build-essential \
51-
python-is-python3 curl git lldb libicu-dev liblttng-ust-dev \
52-
libssl-dev libkrb5-dev zlib1g-dev ninja-build
57+
python-is-python3 curl git lldb libicu-dev liblttng-ust-dev \
58+
libssl-dev libkrb5-dev zlib1g-dev ninja-build
5359
```
5460

5561
**NOTE**: As of now, Ubuntu's `apt` only has until CMake version 3.16.3 if you're using Ubuntu 20.04 LTS (less in older Ubuntu versions), and version 3.18.4 in Debian 11 (less in older Debian versions). This is lower than the required 3.20, which in turn makes it incompatible with the repo. For this case, we can use the `snap` package manager or the _Kitware APT feed_ to get a new enough version of CMake.
@@ -98,7 +104,7 @@ Install the following packages for the toolchain:
98104

99105
```bash
100106
sudo dnf install -y cmake llvm lld lldb clang python curl git libicu-devel openssl-devel \
101-
krb5-devel zlib-devel lttng-ust-devel ninja-build
107+
krb5-devel zlib-devel lttng-ust-devel ninja-build
102108
```
103109

104110
### Gentoo

eng/install-native-dependencies.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ case "$os" in
2727
libssl-dev libkrb5-dev zlib1g-dev
2828

2929
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
30+
elif [ "$ID" = "fedora" ]; then
31+
dnf install -y cmake llvm lld lldb clang python curl libicu-devel openssl-devel krb5-devel zlib-devel lttng-ust-devel
3032
elif [ "$ID" = "alpine" ]; then
3133
apk add build-base cmake bash curl clang llvm-dev krb5-dev lttng-ust-dev icu-dev zlib-dev openssl-dev
3234
else

0 commit comments

Comments
 (0)