本文主要是介绍Jitsi Meet视频通话Ubuntu环境搭建全过程,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Jitsi Meet视频通话Ubuntu环境搭建全过程
一、需要准备的工具及环境
1.Android studio(Linux版本)安装包
2.ubuntu-16.04.6-desktop-amd64.iso安装包
3.网络环境需要可以访问外网
二、Ubuntu上软件安装步骤
1.安装 node.js
apt-get install curl
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
2.安装 react-native
npm config set registry https://registry.npm.taobao.org
npm install -g react-native-cli
3.安装JDK
sudo apt-get install openjdk-8-jdk
4.安装git
sudo apt-get install openjdk-8-jdk
5.下载源码
git clone https://github.com/jitsi/jitsi-meet.git
cd jitsi-meet
6.安装 yarn
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
7.执行yarn
npm install webpack -g
yarn
8.安装Android studio
https://jingyan.baidu.com/article/154b46311426f528ca8f41e5.html(ubuntu16.04安装android-studio步骤)
然后下载28API的SDK
9.配置环境变量
配置环境变量
输入vim ~/.bashrc
在文件末尾添加以下:
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=${JAVA_HOME}/bin:$PATH
10.安装watchman
apt install linuxbrew-wrapper
brew update && brew upgrade
brew install watchman
11.运行项目
react-native run-android
已经安装过的用react-native start
可能的报错及解决方案
1.报错:Watchman crawl failed. Retrying once with node crawler. Liunx文件超过数量解决
解决方案:
echo fs.inotify.max_user_instances=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
echo fs.inotify.max_queued_events=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
2.报错:500 error: bundling failed: Error: Unable to resolve module `lib-jitsi-meet/lib-jitsi-meet.min` from `/mnt/jitsi-meet-master/react/features/base/lib-jitsi-meet/_.native.js`: Module `lib-jitsi-meet/lib-jitsi-meet.min` does not exist in the Haste module map
解决方案:
在/node_modules/lib-jitsi-meet目录执行yarn
3.概率事件:运行正常之后要黑屏一会,等一下就行
这篇关于Jitsi Meet视频通话Ubuntu环境搭建全过程的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!