mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(Bash/Ubuntu): allow Boost install on minimal ubuntu 20.04 installs (#6037)
This commit is contained in:
@@ -1,27 +1,29 @@
|
|||||||
|
if ! command -v lsb_release &>/dev/null ; then
|
||||||
|
sudo apt-get install -y lsb-release
|
||||||
|
fi
|
||||||
|
|
||||||
# if ! command -v lsb_release &>/dev/null ; then
|
UBUNTU_VERSION=$(lsb_release -sr);
|
||||||
# sudo apt-get install -y lsb-release
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# UBUNTU_VERSION=$(lsb_release -sr);
|
|
||||||
|
|
||||||
# Added repo for newest lib
|
|
||||||
sudo add-apt-repository -y ppa:mhier/libboost-latest
|
|
||||||
sudo apt update
|
sudo apt update
|
||||||
|
|
||||||
# shared deps
|
# shared deps
|
||||||
sudo apt-get -y install make cmake clang curl unzip libmysqlclient-dev libace-dev ccache google-perftools
|
sudo apt-get -y install ccache clang cmake curl google-perftools libace-dev libmysqlclient-dev make unzip
|
||||||
|
|
||||||
# Insstall boost 1.74 from ppa:mhier/libboost-latest for all os versions
|
|
||||||
sudo apt-get -y install libboost1.74-dev
|
|
||||||
|
|
||||||
if [[ $CONTINUOUS_INTEGRATION || $DOCKER ]]; then
|
if [[ $CONTINUOUS_INTEGRATION || $DOCKER ]]; then
|
||||||
sudo apt-get -y install build-essential libtool cmake-data openssl libgoogle-perftools-dev \
|
sudo add-apt-repository -y ppa:mhier/libboost-latest && sudo apt update && sudo apt-get -y install build-essential cmake-data \
|
||||||
libssl-dev libmysql++-dev libreadline6-dev zlib1g-dev libbz2-dev mysql-client \
|
libboost1.74-dev libbz2-dev libncurses5-dev libmysql++-dev libgoogle-perftools-dev libreadline6-dev libssl-dev libtool mysql-client \
|
||||||
libncurses5-dev
|
openssl zlib1g-dev
|
||||||
else
|
else
|
||||||
sudo apt-get install -y git gcc g++ gdb gdbserver \
|
case $UBUNTU_VERSION in
|
||||||
libssl-dev libbz2-dev libreadline-dev libncurses-dev \
|
"20.04")
|
||||||
mysql-server libace-6.*
|
sudo apt-get install -y g++ gdb gdbserver gcc git \
|
||||||
|
libace-6.* libboost-all-dev libbz2-dev libncurses-dev libreadline-dev \
|
||||||
|
libssl-dev mysql-server
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
sudo add-apt-repository -y ppa:mhier/libboost-latest && sudo apt update && sudo apt-get install -y g++ gdb gdbserver gcc git \
|
||||||
|
libace-6.* libboost-all-dev libbz2-dev libncurses-dev libreadline-dev \
|
||||||
|
libssl-dev mysql-server
|
||||||
|
;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user