版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/liwenlong_only/article/details/79303557
Licode mac 源码安装
安装环境:Mac OS X 13.3;
licode 版本:master 分支;
python 版本:2.7;
1,设置/usr/local目录的读写权限
- 对于Mac OS X 10.11 El Capitan用户,由于系统启用了SIP(System Integrity Protection), 导致root用户也没有权限修改/usr/bin目录。按如下方式可恢复权限
- 屏蔽方法:重启Mac,按住command+R,进入recovery模式。选择打开Utilities下的终端,输入:
csrutil disable
并回车,然后输入:reboot
并回车重启Mac即可; - 打开终端输入:
sudo chown -R "name" /usr/local/
并回车
2,安装homebrew
- 打开终端,输入如下:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
3,克隆Licode
git clone https://github.com/lynckia/licode.git
cd licode
4,安装依赖
./scripts/installMacDeps.sh
5,安装Licode
./scripts/installNuve.sh
./scripts/installErizo.sh
6,安装basicExample
./scripts/installBasicExample.sh
7,开始Licode!
./scripts/initLicode.sh
./scripts/initBasicExample.sh
如果出现端口报错的问题,请使用lsof -i:port
查看占用端口的进程,使用kill pid
杀死进程;
现在您可以连接到http://localhost:3001与Chrome或Firefox,并测试您的基本视频会议示例!