Python 设置WebRTC本机开发环境时出错

Python 设置WebRTC本机开发环境时出错,python,ubuntu,webrtc,Python,Ubuntu,Webrtc,在Ubuntu中设置webRTC本机开发环境时,我在执行获取webRTC时遇到以下错误(按照来自的说明) .您是否安装了depot\u tools,是否在您的路径中?是的,depot\u tools在我的路径中,以确认如果您运行gclient--help,那么您确实会得到一些有用的输出,而不是例如找不到命令?@rob gclient--help工作。此错误发生在下载(运行:gclient sync)约2.6 GB的数据后。OpenJDK也可以正常工作。确保您安装了JDK,而不仅仅是JRE。您是否

在Ubuntu中设置webRTC本机开发环境时,我在执行
获取webRTC
时遇到以下错误(按照来自的说明)


.

您是否安装了
depot\u tools
,是否在您的
路径中?是的,depot\u tools在我的路径中,以确认如果您运行
gclient--help
,那么您确实会得到一些有用的输出,而不是例如找不到命令?@rob gclient--help工作。此错误发生在下载(运行:gclient sync)约2.6 GB的数据后。OpenJDK也可以正常工作。确保您安装了JDK,而不仅仅是JRE。您是否安装了
depot_tools
,它是否在您的
路径中?是的,depot_tools在我的路径中,以确认如果您运行
gclient--help
,那么您确实会得到一些有用的输出,而不是例如找不到命令?@rob gclient--help正在工作。此错误发生在下载(运行:gclient sync)约2.6 GB的数据后。OpenJDK也可以正常工作。确保您安装的是JDK,而不仅仅是JRE。
> Error: Command '/usr/bin/python src/webrtc/build/gyp_webrtc
> -Dextra_gyp_flag=0' returned non-zero exit status 1 in /home/anoop/Documents/webrtcrepo Traceback (most recent call last):  
> File "/home/anoop/depot_tools/fetch.py", line 342, in <module>
>     sys.exit(main())   File "/home/anoop/depot_tools/fetch.py", line 337, in main
>     return run(options, spec, root)   File "/home/anoop/depot_tools/fetch.py", line 331, in run
>     return checkout.init()   File "/home/anoop/depot_tools/fetch.py", line 142, in init
>     self.run_gclient(*sync_cmd)   File "/home/anoop/depot_tools/fetch.py", line 76, in run_gclient
>     return self.run(cmd_prefix + cmd, **kwargs)   File "/home/anoop/depot_tools/fetch.py", line 66, in run
>     return subprocess.check_output(cmd, **kwargs)   File "/usr/lib/python2.7/subprocess.py", line 573, in check_output
>     raise CalledProcessError(retcode, cmd, output=output) subprocess.CalledProcessError: Command '('gclient', 'sync',
> '--with_branch_heads')' returned non-zero exit status 2
AssertionError: Point $JAVA_HOME or the java_home gyp variable to a directory containing include/jni.h!
gyp: Call to 'python -c "import os; dir=os.getenv('JAVA_HOME', '/usr/lib/jvm/java-7-openjdk-amd64'); assert os.path.exists(os.path.join(dir, 'include/jni.h')), 'Point \$JAVA_HOME or the java_home gyp variable to a directory containing include/jni.h!'; print dir"' returned exit status 1