Commit cc666817 authored by Jeremy Soller's avatar Jeremy Soller Committed by GitHub

Merge pull request #110 from sajattack/master

add instructions for installing the toolchain
parents a3604281 8c50f6d0
......@@ -22,6 +22,7 @@
- [Trying Redox in a virtual machine](./getting_started/try_vm.md)
- [Running Redox on real hardware](./getting_started/real_hardware.md)
- [Preparing the build](./getting_started/preparing_the_build.md)
- [Installing the toolchain](./getting_started/installing_the_toolchain.md)
- [Compiling Redox](./getting_started/compiling_redox.md)
- [Exploring Redox](./getting_started/exploring_redox.md)
- [Questions and feedback](./getting_started/asking_questions_giving_feedback.md)
......
Installing the toolchain
========================
### 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 git@github.com:redox-os/libc
# 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@github.com: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
```
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