2020-01-24 14:17:29 -05:00
|
|
|
sudo apt-get update && \
|
|
|
|
sudo apt-get install build-essential software-properties-common -y && \
|
|
|
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
|
2020-01-26 10:42:01 -05:00
|
|
|
sudo apt-get update && \
|
2020-01-24 14:17:29 -05:00
|
|
|
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 && \
|
2020-01-26 10:42:01 -05:00
|
|
|
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-9 60 --slave /usr/bin/c++ c++ /usr/bin/c++-9 # THis fails for some reason
|
|
|
|
|
|
|
|
Sometimes its required to build from source:
|
|
|
|
https://raw.githubusercontent.com/darrenjs/howto/master/build_scripts/build_gcc_9.sh
|
2020-01-24 14:17:29 -05:00
|
|
|
|
2020-01-26 10:42:01 -05:00
|
|
|
apt-get install -y autoconf git wget libssl-dev realpath libsqlite3-dev libmysqlclient-dev
|
2020-01-24 14:17:29 -05:00
|
|
|
|
2020-01-26 10:42:01 -05:00
|
|
|
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 && \
|
2020-01-24 14:17:29 -05:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
git config --global credential.helper store
|
|
|
|
|
|
|
|
# Patchelf
|
2020-01-25 08:23:31 -05:00
|
|
|
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 && \
|
2020-01-24 14:17:29 -05:00
|
|
|
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
|
2020-01-25 08:23:31 -05:00
|
|
|
sudo update-alternatives --install /usr/bin/go go /usr/lib/go-1.11/bin/go 1
|