39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
|
sudo apt-get update && \
|
||
|
sudo apt-get install build-essential software-properties-common -y && \
|
||
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
|
||
|
sudo apt-get update
|
||
|
|
||
|
sudo apt-get install gcc-9 g++-9 -y && \
|
||
|
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9 && \
|
||
|
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-9 60 --slave /usr/bin/c++ c++ /usr/bin/c++-9
|
||
|
|
||
|
apt-get install autoconf git wget libssl-dev realpath
|
||
|
|
||
|
wget https://github.com/Kitware/CMake/releases/download/v3.16.3/cmake-3.16.3.tar.gz && tar xvf cmake-3.16.3.tar.gz
|
||
|
cd cmake-3.16.3 && ./configure --parallel=16
|
||
|
make -j16 && make install
|
||
|
cd ..
|
||
|
|
||
|
git config --global credential.helper store
|
||
|
|
||
|
# Patchelf
|
||
|
wget http://nixos.org/releases/patchelf/patchelf-0.10/patchelf-0.10.tar.bz2
|
||
|
tar xf patchelf-0.10.tar.bz2
|
||
|
cd patchelf-0.10
|
||
|
./configure
|
||
|
make install
|
||
|
|
||
|
# Create TeaSpeak
|
||
|
git clone https://git.did.science/WolverinDEV/TeaSpeak-Parent.git server && cd server && \
|
||
|
git submodule update --init --recursive
|
||
|
./libraries/build.sh
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
# -------- Troubleshooting ----------
|
||
|
If go raises an error/crashes install a newer version:
|
||
|
$ sudo add-apt-repository ppa:gophers/archive
|
||
|
$ sudo apt-get update
|
||
|
$ sudo apt-get install golang-1.11-go
|
||
|
sudo update-alternatives --install /usr/bin/go go /usr/lib/go-1.11/bin/go 1
|