mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Documentation: Debian gcc-9 installation instructions
We already have installation instructions for ubuntu but not yet for Debian. Gcc-9 is not available on Debian stable so instructions for switching to and from Debian testing are added.
This commit is contained in:
parent
926fb3ff48
commit
fd7a2278b9
Notes:
sideshowbarker
2024-07-19 02:13:13 +09:00
Author: https://github.com/RobbeDGreef Commit: https://github.com/SerenityOS/serenity/commit/fd7a2278b99 Pull-request: https://github.com/SerenityOS/serenity/pull/3611
1 changed files with 18 additions and 0 deletions
|
@ -37,6 +37,24 @@ sudo apt-get install gcc-9 g++-9
|
|||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 900 --slave /usr/bin/g++ g++ /usr/bin/g++-9
|
||||
```
|
||||
|
||||
On Debian you can install it by switching to 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
|
||||
```
|
||||
|
||||
Afterwards you can install gcc-9 with apt like:
|
||||
```bash
|
||||
sudo apt install gcc-9 g++-9
|
||||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 900 --slave /usr/bin/g++ g++ /usr/bin/g++-9
|
||||
```
|
||||
|
||||
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).
|
||||
|
||||
#### macOS prerequisites
|
||||
|
|
Loading…
Reference in a new issue