mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
Documentation: Re-arrange Linux prerequisites in build instructions
This commit is contained in:
parent
04eb6bd379
commit
9547846a18
Notes:
sideshowbarker
2024-07-18 21:43:07 +09:00
Author: https://github.com/danboid Commit: https://github.com/SerenityOS/serenity/commit/9547846a185 Pull-request: https://github.com/SerenityOS/serenity/pull/5635
1 changed files with 28 additions and 26 deletions
|
@ -3,6 +3,34 @@
|
|||
### Prerequisites
|
||||
|
||||
#### Linux prerequisites
|
||||
|
||||
Ensure your CMake version is >= 3.16 with `cmake --version`. If your system doesn't provide a suitable version of CMake, you can download a binary release from the [CMake website](https://cmake.org/download).
|
||||
|
||||
Ensure your gcc version is >= 10 with `gcc --version`. Otherwise, install it.
|
||||
|
||||
On Ubuntu it's in the repositories of 20.04 (Focal) and later - add the `ubuntu-toolchain-r/test` PPA if you're running an older version:
|
||||
```bash
|
||||
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
|
||||
```
|
||||
|
||||
On Debian you can use the Debian testing branch:
|
||||
```bash
|
||||
sudo echo "deb http://http.us.debian.org/debian/ testing non-free contrib main" >> /etc/apt/sources.list
|
||||
sudo apt update
|
||||
```
|
||||
|
||||
Now on Ubuntu or Debian you can install gcc-10 with apt like this:
|
||||
```bash
|
||||
sudo apt install gcc-10 g++-10
|
||||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 900 --slave /usr/bin/g++ g++ /usr/bin/g++-10
|
||||
```
|
||||
|
||||
If you don't want to stay on the Debian testing branch you can switch back by running:
|
||||
```bash
|
||||
sudo sed -i '$d' /etc/apt/sources.list
|
||||
sudo apt update
|
||||
```
|
||||
|
||||
Make sure you have all the dependencies installed (`ninja` is optional, but is faster in practice):
|
||||
|
||||
**Debian / Ubuntu**
|
||||
|
@ -30,32 +58,6 @@ sudo pacman -S --needed base-devel cmake curl mpfr libmpc gmp e2fsprogs ninja qe
|
|||
apt-get install curl cmake libmpc-devel gmp-devel e2fsprogs libmpfr-devel ninja-build patch gcc
|
||||
```
|
||||
|
||||
Ensure your gcc version is >= 10 with `gcc --version`. Otherwise, install it.
|
||||
|
||||
On Ubuntu it's in the repositories of 20.04 (Focal) and later - add the `ubuntu-toolchain-r/test` PPA if you're running an older version:
|
||||
```bash
|
||||
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
|
||||
```
|
||||
|
||||
On Debian you can use the Debian testing branch:
|
||||
```bash
|
||||
sudo echo "deb http://http.us.debian.org/debian/ testing non-free contrib main" >> /etc/apt/sources.list
|
||||
sudo apt update
|
||||
```
|
||||
|
||||
Now on Ubuntu or Debian you can install gcc-10 with apt like this:
|
||||
```bash
|
||||
sudo apt install gcc-10 g++-10
|
||||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 900 --slave /usr/bin/g++ g++ /usr/bin/g++-10
|
||||
```
|
||||
|
||||
If you don't want to stay on the testing branch you can switch back by running:
|
||||
```bash
|
||||
sudo sed -i '$d' /etc/apt/sources.list
|
||||
sudo apt update
|
||||
```
|
||||
|
||||
Ensure your CMake version is >= 3.16 with `cmake --version`. If your system doesn't provide a suitable version of CMake, you can download a binary release from the [CMake website](https://cmake.org/download).
|
||||
|
||||
**NixOS**
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue