1靶端、yum install epel-release 安裝epel-release包谎势,更新yum的軟件倉庫。
2杨名、yum update -y 更新倉庫中軟件包
3脏榆、yum install libmicrohttpd-devel jansson-devel openssl-devel libsrtp-devel sofia-sip-devel glib2-devel opus-devel libogg-devel libcurl-devel pkgconfig gengetopt libconfig-devel libtool autoconf automake
4、上述安裝發(fā)現(xiàn)沒有sofia-sip-devel只能采用源碼安裝 eg:git clone https://git.code.sf.net/p/sofia-sip/git sofia-sip-git
根據(jù)系統(tǒng)自帶autmake版本修改autogen.sh镣煮,執(zhí)行 sh autogen.sh
./configure?
make && make install
5姐霍、安裝libnice? ? ?
?git clone https://gitlab.freedesktop.org/libnice/libnice.git
需要依賴安裝gtk? yum install gtk*
cd libnice
./autogen.sh
./configure --prefix=/usr
make && sudo make install
6、安裝libsrtp庫
wget https://github.com/cisco/libsrtp/archive/v1.5.4.tar.gz
tar xfv v1.5.4.tar.gz
cd libsrtp-1.5.4
./configure --prefix=/usr --enable-openssl?--libdir=/usr/lib64
make shared_library && sudo make install
7典唇、安裝boringssl庫
git clone https://boringssl.googlesource.com/boringssl.git
cd boringssl
# Don't barf on errors
sed -i s/" -Werror"http://g CMakeLists.txt
# Build
mkdir -p build
cd build
cmake -DCMAKE_CXX_FLAGS="-lrt" ..
make
cd ..
# Install
sudo mkdir -p /opt/boringssl
sudo cp -R include /opt/boringssl/
sudo mkdir -p /opt/boringssl/lib
sudo cp build/ssl/libssl.a /opt/boringssl/lib/
sudo cp build/crypto/libcrypto.a /opt/boringssl/lib/
8镊折、安裝usrsctp
git clone https://github.com/sctplab/usrsctp
cd usrsctp
./bootstrap
./configure --prefix=/usr? ?--libdir=/usr/lib64?&& make && sudo make install
9、安裝libwebsockets
git clone https://github.com/warmcat/libwebsockets.git
cd libwebsockets
# If you want the stable version of libwebsockets, uncomment the next line
# git checkout v2.4-stable
mkdir build
cd build
# See https://github.com/meetecho/janus-gateway/issues/732 re: LWS_MAX_SMP
cmake -DLWS_MAX_SMP=1 -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_C_FLAGS="-fpic" ..
make && sudo make install
10介衔、安裝paho.mqtt.c
git clone https://github.com/eclipse/paho.mqtt.c.git
cd paho.mqtt.c
make && sudo make install
11恨胚、安裝rabbitmq-c
git clone https://github.com/alanxz/rabbitmq-c
cd rabbitmq-c
git submodule init
git submodule update
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make && sudo make install
12、yum install doxygen graphviz
13炎咖、下載/janus-gateway
git clone https://github.com/meetecho/janus-gateway.git
cd janus-gateway
sh autogen.sh
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/pkgconfig
./configure --prefix=/opt/janus
make
make install
安裝默認(rèn)配置文件make configs
如果想禁用一些功能?./configure --disable-websockets --disable-data-channels --disable-rabbitmq --disable-mqtt
構(gòu)建文檔時使用此語句安裝 ./configure --enable-docs