2022-12-15 00:21:54 +05:30
|
|
|
#!/bin/sh
|
2021-06-02 14:07:10 -04:00
|
|
|
|
|
|
|
dependNix="libboost-chrono-dev \
|
|
|
|
libboost-date-time-dev \
|
|
|
|
libboost-filesystem-dev \
|
|
|
|
libboost-program-options-dev \
|
|
|
|
libboost-system-dev \
|
|
|
|
libboost-thread-dev \
|
|
|
|
libssl-dev \
|
|
|
|
zlib1g-dev"
|
|
|
|
|
|
|
|
dependWin="mingw-w64-x86_64-boost \
|
|
|
|
mingw-w64-x86_64-openssl \
|
|
|
|
mingw-w64-x86_64-zlib"
|
|
|
|
|
2022-12-15 00:21:54 +05:30
|
|
|
kernel=$(uname -a)
|
2021-06-02 14:07:10 -04:00
|
|
|
|
|
|
|
case "$kernel" in
|
|
|
|
*Ubuntu*|*Debian*)
|
2022-12-15 00:21:54 +05:30
|
|
|
sudo apt install "$dependNix";;
|
2021-06-02 14:07:10 -04:00
|
|
|
*gentoo*)
|
|
|
|
sudo emerge --deep --newuse dev-libs/boost dev-libs/openssl;;
|
|
|
|
*MINGW64*)
|
2022-12-15 00:21:54 +05:30
|
|
|
pacman -S "$dependWin";;
|
2021-06-02 14:07:10 -04:00
|
|
|
*)
|
2022-12-15 00:21:54 +05:30
|
|
|
printf "Just install libboost and libopenssl dev packages on your pc\n";;
|
2021-06-02 14:07:10 -04:00
|
|
|
esac
|