Explorar el Código

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.

Robbe De Greef hace 4 años
padre
commit
fd7a2278b9
Se han modificado 1 ficheros con 18 adiciones y 0 borrados
  1. 18 0
      Documentation/BuildInstructions.md

+ 18 - 0
Documentation/BuildInstructions.md

@@ -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
 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).
 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
 #### macOS prerequisites