Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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
```