执行 ./scripts/installUbuntuDeps.sh步骤
1、E: Package 'python-software-properties' has no installation candidate
原因:python版本不支持python-software-properties
了;
解决:找到libcode/scripts/installUbantuDeps.sh
文件,搜索python-software-properties
,并把这行注释即可。
2、ImportError: cannot import name '_gi' from 'gi' (/usr/lib/python3/dist-packages/gi/__init__.py)
原因:之前ubantu默认安装了python2.7,后来又安装了python3.7
解决:
cd /usr/lib/python3/dist-packages/gi/
#这里需要把老的版本改成当前对应的版本
#如果不知道老版本执行ls /usr/lib/python3/dist-packages/gi/
sudo cp _gi.cpython-36m-x86_64-linux-gnu.so _gi.cpython-37m-x86_64-linux-gnu.so
3、E: Unable to locate package liblog4cxx10-dev
原因:apt-get
中已经没有liblog4cxx10-dev
库了,执行apt search liblog4cxx10
发现只有liblog4cxx10v5
了
解决:找到libcode/scripts/installUbantuDeps.sh
文件,搜索liblog4cxx10
,改为liblog4cxx10v5
即可。
执行./scripts/installErizo.sh步骤
2、ERROR: format_include_paths() got an unexpected keyword argument 'compiler'
出现这个报错是因为,conan的官方库代码已经更新,format_include_paths
方法的入参变了,直接看这个提交的改动,

从图中我们可以看出
compiler
参数已经被settings
替代,继续搜format_include_paths
,我们可以找到解决方案:
我们需要在licode/erizo/utils/conan-include-paths/conanfile.py
文件中增加一个方法
@property
def _settings(self):
settings = self.conanfile.settings.copy()
if self.settings.get_safe("compiler"):
settings.compiler = self.compiler
return settings
并把第40、41行
flags.extend(format_include_paths(self._deps_build_info.include_paths,
compiler=self.compiler))
替换为
flags.extend(format_include_paths(self._deps_build_info.include_paths,
self._settings))
2、执行./scripts/installBasicExample.sh报错
Checking dir /Users/tianchao/WebRTC/licode/build/libdeps/nvm
Running nvm
Found '/Users/tianchao/WebRTC/licode/.nvmrc' with version <12.13.0>
Now using node v12.13.0 (npm v6.12.0)
audited 63 packages in 0.961s
found 1 low severity vulnerability
run `npm audit fix` to fix them, or `npm audit` for details
出现这个错是因为,部分npm的依赖版本过低,有安全漏洞,我们执行npm audit
可以看到

这里发现
minimist
和yargs-parser
两个依赖版本都过低,我们找到licode/packet-lock.json
文件,搜索minimist
,把版本都改为1.2.5
,搜索yargs-parser
,版本都改为15.0.1
。如果还报错的话,执行
npm set audit false
。npm 依赖
请参考这里。
网友评论