Last active
January 21, 2019 18:08
-
-
Save keyakko/43a3a906ca1c89c76238b39df316ab80 to your computer and use it in GitHub Desktop.
janus-gateway buildmemo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# for docker | |
function close () { | |
echo "[ERROR]: " $1 | |
exit 1 | |
} | |
cd /root | |
echo "##### package remove/install #####" | |
apt purge -y libsrtp0-dev || close 'purge failure' | |
apt install -y libmicrohttpd-dev libjansson-dev \ | |
libssl-dev libsrtp2-dev libsofia-sip-ua-dev libglib2.0-dev \ | |
libopus-dev libogg-dev libcurl4-openssl-dev liblua5.3-dev \ | |
libconfig-dev pkg-config gengetopt libtool automake doxygen graphviz libcrypto++-dev libnice-dev || close 'install failure' | |
echo "##### libnice install #####" | |
git clone https://gitlab.freedesktop.org/libnice/libnice.git | |
cd libnice | |
./autogen.sh || close 'libnice install error' | |
./configure --prefix=/usr || close 'libnice install error' | |
make && sudo make install || close 'libnice install error' | |
cd ../ | |
echo "##### janus install #####" | |
git clone https://github.com/meetecho/janus-gateway.git | |
cd janus-gateway | |
sh autogen.sh || close 'janus install error' | |
./configure --prefix=/usr/local || close 'janus install error' | |
make && make install || close 'janus install error' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment