Skip to content

Commit 99d45b0

Browse files
Per NordlöwPer Nordlöw
authored andcommitted
Add installer for Ubuntu 22.04 and Zig master on Linux 64-bit
1 parent 03ca575 commit 99d45b0

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#!/bin/bash
2+
3+
# Install faster linker
4+
if ! type -f ld.lld &>/dev/null; then
5+
sudo apt install lld
6+
fi
7+
8+
# C
9+
sudo apt install tcc
10+
sudo apt install gcc-12
11+
sudo apt install clang-14
12+
13+
# C++
14+
sudo apt install g++-12
15+
sudo apt install clang-14
16+
17+
# Ada
18+
sudo apt install gnat-12
19+
20+
# D `dmd`
21+
./install-dmd.sh
22+
23+
# D `gdc`
24+
sudo apt install gdc gdc-12
25+
26+
# Go: `gccgo`
27+
sudo apt install gccgo-12
28+
29+
# Go: `go` `gotype`
30+
sudo add-apt-repository ppa:longsleep/golang-backports
31+
sudo apt update
32+
sudo apt install golang-go golang-golang-x-tools
33+
34+
# Julia
35+
sudo apt install julia
36+
37+
# C#
38+
./install-mono.sh
39+
40+
sudo apt install mono-mcs
41+
42+
# Java
43+
sudo apt install openjdk-18-jdk
44+
45+
# Nim
46+
curl https://nim-lang.org/choosenim/init.sh -sSf | sh
47+
48+
# OCaml
49+
sudo apt install ocaml-nox

install-zig-master.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
VERSION="0.10.0"
4+
URL=https://ziglang.org/builds/zig-linux-x86_64-${VERSION}-dev.3659+e5e6eb983.tar.xz
5+
TDIR="${HOME}/.local"
6+
7+
echo "Downloading and extracting ${URL} to ${TDIR}..."
8+
exec wget --quiet --show-progress --progress=bar:force -c "${URL}" -O - | tar -xJ -C "${TDIR}"

0 commit comments

Comments
 (0)