Commit 86701f1f authored by Jeremy Soller's avatar Jeremy Soller

Remove old libc instructions from book

parent 63179d76
......@@ -21,7 +21,6 @@
- [Getting started](./getting_started/getting_started.md)
- [Trying Redox in a virtual machine](./getting_started/try_vm.md)
- [Running Redox on real hardware](./getting_started/real_hardware.md)
- [Installing the toolchain](./getting_started/installing_the_toolchain.md)
- [Preparing the build](./getting_started/preparing_the_build.md)
- [Compiling Redox](./getting_started/compiling_redox.md)
- [Trying Out Redox](./getting_started/trying_out_redox.md)
......
Getting started
===============
[Preparing the build](getting_started/preparing_the_build.html) has information about setting up your system to compile Redox, which is necessary if you want to contribute to Redox development.
[Preparing the build](preparing_the_build.html) has information about setting up your system to compile Redox, which is necessary if you want to contribute to Redox development.
If you aren't (currently) interested in going through the trouble of building Redox, you can download the latest release. See the instructions for [running in a virtual machine](getting_started/try_vm.html) or [running on real hardware](getting_started/real_hardware.html).
If you aren't (currently) interested in going through the trouble of building Redox, you can download the latest release. See the instructions for [running in a virtual machine](try_vm.html) or [running on real hardware](real_hardware.html).
Installing the toolchain
========================
The redox toolchain is required in order to compile certain parts of redox. This basically entails installing a patched version of gcc.
### Ubuntu and other Debian based systems
To install the toolchain, run the following commands:
```bash
# Get the Redox OS APT key
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AA12E97F0881517F
# Install the APT repository
sudo add-apt-repository 'deb https://static.redox-os.org/toolchain/apt /'
# Update your package lists
sudo apt update
# Install the cross compiler
sudo apt install x86-64-unknown-redox-gcc
```
### Arch Linux
To install the toolchain, run the following commands:
```bash
# Clone libc
git clone --recursive https://gitlab.redox-os.org/redox-os/libc.git
# Go to the packages
cd libc/packages/arch
# Start with binutils
cd binutils
makepkg -si
# Then autoconf
cd ../autoconf
makepkg -si
# Then gcc-freestanding
cd ../gcc-freestanding
makepkg -si
# Then newlib
cd ../newlib
makepkg -si
# Finally gcc
cd ../gcc
makepkg -si
```
### Other distros/Mac OS X
To install the toolchain, run the following commands:
```bash
# Clone libc
git clone --recursive git@gitlab.redox-os.org:redox-os/libc
# Run the setup script
cd libc
./setup.sh all
# Add the tools to your path
export PATH=$PATH:/path/to/libc/build/prefix/bin
```
Next steps
----------
Now that we have the build tools and the toolchain, we can [prepare our build](getting_started/preparing_the_build.html).
theme/favicon.png

1.11 KB | W: | H:

theme/favicon.png

1.4 KB | W: | H:

theme/favicon.png
theme/favicon.png
theme/favicon.png
theme/favicon.png
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment