0
点赞
收藏
分享

微信扫一扫

编译部署MediaServer

瑾谋 03-19 21:45 阅读 2

cd /usr/local/
 
yum install -y wget
 
wget http://www.cmake.org/files/v3.26/cmake-3.26.4.tar.gz
 
tar -zxvf cmake-3.26.4.tar.gz
 
cd cmake-3.26.4
 
./bootstrap
 
gmake
 
gmake install
 
sed -i '$a PATH=/usr/local/cmake-3.26.4/bin:$PATH\nexport PATH' /etc/profile
 
bash /etc/profile
 
source /etc/profile











yum install -y git libsrtp.i686 libsrtp.x86_64 libsrtp-devel.i686 libsrtp-devel.x86_64 baresip.x86_64 libre.x86_64
 
git clone --depth 1 https://gitee.com/xia-chu/ZLMediaKit
 
cd ZLMediaKit
 
git submodule update --init
 
mkdir build
 
cd build 
 
cmake ..
 
make -j4



kill -9 `ps aux |grep MediaServer |grep -v grep |grep -v retomcat | awk '{print $2}'`
 
/usr/local/cmake-3.26.4/ZLMediaKit/release/linux/Debug/MediaServer -d &








参考资料:

出错安装: yum install -y gcc yum install -y gcc-c++ https://blog.csdn.net/weixin_43570089/article/details/96964561

yum -y install ncurses-devel

yum install openssl-devel

https://blog.csdn.net/weixin_39777626/article/details/104911741

举报

相关推荐

0 条评论