SHOW:
|
|
- or go back to the newest paste.
1 | # RUN ALL OF THESE AS A PRIVELEGED USER, SINCE WE ARE DOWNLOADING INTO /etc | |
2 | ||
3 | # You're gay if you don't use Debian | |
4 | apt-get install gcc golang electric-fence | |
5 | ||
6 | mkdir /etc/xcompile | |
7 | cd /etc/xcompile | |
8 | ||
9 | wget https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-armv4l.tar.bz2 | |
10 | wget https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-i586.tar.bz2 | |
11 | wget https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-m68k.tar.bz2 | |
12 | wget https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-mips.tar.bz2 | |
13 | wget https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-mipsel.tar.bz2 | |
14 | wget https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-powerpc.tar.bz2 | |
15 | wget https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-sh4.tar.bz2 | |
16 | wget https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-sparc.tar.bz2 | |
17 | ||
18 | tar -jxf cross-compiler-armv4l.tar.bz2 | |
19 | tar -jxf cross-compiler-i586.tar.bz2 | |
20 | tar -jxf cross-compiler-m68k.tar.bz2 | |
21 | tar -jxf cross-compiler-mips.tar.bz2 | |
22 | tar -jxf cross-compiler-mipsel.tar.bz2 | |
23 | tar -jxf cross-compiler-powerpc.tar.bz2 | |
24 | tar -jxf cross-compiler-sh4.tar.bz2 | |
25 | tar -jxf cross-compiler-sparc.tar.bz2 | |
26 | ||
27 | rm *.tar.bz2 | |
28 | mv cross-compiler-armv4l armv4l | |
29 | mv cross-compiler-i586 i586 | |
30 | mv cross-compiler-m68k m68k | |
31 | mv cross-compiler-mips mips | |
32 | mv cross-compiler-mipsel mipsel | |
33 | mv cross-compiler-powerpc powerpc | |
34 | mv cross-compiler-sh4 sh4 | |
35 | mv cross-compiler-sparc sparc | |
36 | ||
37 | -- END -- | |
38 | ||
39 | ||
40 | ||
41 | ||
42 | ||
43 | ||
44 | # PUT THESE COMMANDS IN THE FILE ~/.bashrc | |
45 | ||
46 | # Cross compiler toolchains | |
47 | export PATH=$PATH:/etc/xcompile/armv4l/bin | |
48 | export PATH=$PATH:/etc/xcompile/armv6l/bin | |
49 | export PATH=$PATH:/etc/xcompile/i586/bin | |
50 | export PATH=$PATH:/etc/xcompile/m68k/bin | |
51 | export PATH=$PATH:/etc/xcompile/mips/bin | |
52 | export PATH=$PATH:/etc/xcompile/mipsel/bin | |
53 | export PATH=$PATH:/etc/xcompile/powerpc/bin | |
54 | export PATH=$PATH:/etc/xcompile/powerpc-440fp/bin | |
55 | export PATH=$PATH:/etc/xcompile/sh4/bin | |
56 | export PATH=$PATH:/etc/xcompile/sparc/bin | |
57 | ||
58 | # Golang | |
59 | export PATH=$PATH:/usr/local/go/bin | |
60 | export GOPATH=$HOME/Documents/go | |
61 | ||
62 | -- END -- |