Webrtc 第一次运行gclient sync时出错--在Ubuntu上强制

Webrtc 第一次运行gclient sync时出错--在Ubuntu上强制,webrtc,Webrtc,在Ubuntu上以正确的顺序安装了所有必需的软件之后,我运行了以下两个命令 $ gclient config http://webrtc.googlecode.com/svn/trunk $ gclient sync --force 后者花费了一些时间并下载了trunk和chromiudeps文件夹,但是,它给出了以下错误 ________ running '/usr/bin/python trunk/build/gyp_chromium --depth=trunk trunk/all.gyp

在Ubuntu上以正确的顺序安装了所有必需的软件之后,我运行了以下两个命令

$ gclient config http://webrtc.googlecode.com/svn/trunk
$ gclient sync --force
后者花费了一些时间并下载了trunk和chromiudeps文件夹,但是,它给出了以下错误

________ running '/usr/bin/python trunk/build/gyp_chromium --depth=trunk trunk/all.gyp -Dextra_gyp_flag=0' in '/home/sojharo/Data/server'
Updating projects from gyp files...
Traceback (most recent call last):
  File "<string>", line 1, in <module>
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-6-sun'); 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. while trying to load trunk/all.gyp
Error: Command /usr/bin/python trunk/build/gyp_chromium --depth=trunk trunk/all.gyp -Dextra_gyp_flag=0 returned non-zero exit status 1 in /home/sojharo/Data/server
\uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
正在从gyp文件更新项目。。。
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
AssertionError:将$JAVA_HOME或JAVA_HOME gyp变量指向包含include/jni.h的目录!
gyp:调用'python-c'导入os;dir=os.getenv('JAVA_HOME','/usr/lib/jvm/JAVA-6-sun');断言os.path.exists(os.path.join(dir,'include/jni.h')),'Point\$JAVA_HOME或JAVA_HOME gyp变量到包含include/jni.h!'的目录;print dir'返回退出状态1。尝试加载trunk/all.gyp时
错误:Command/usr/bin/python trunk/build/gyp_chromium--depth=trunk-trunk/all.gyp-Dextra_-gyp_flag=0在/home/sojharo/Data/server中返回非零退出状态1

请帮忙

您的java必须是oracle jdk。还要确保设置了JAVA\u主页的
路径

注意:本例中为
gclient config
命令提供的链接较旧。 跟随你的链接
gclient config

您的java必须是oracle jdk。还要确保设置了JAVA\u主页的
路径

注意:本例中为
gclient config
命令提供的链接较旧。 跟随你的链接
gclient config

我从给定的链接安装了Java。但它不起作用,并给出了相同的错误。检查java_home是否在/etc/profile中设置它应该像java_home=/usr/lib/jvm/jdk version PATH=$PATH:$home/bin:$java_home/bin JRE_home=/usr/lib/JRE version PATH=$PATH:$home/bin:$JRE_home/bin导出java_home导出JRE\u home导出路径也是oracle jdk-6版本,7在开发android应用程序时遇到了一些问题感谢您的帮助,它确实起到了作用。我有一个小问题,为什么我们要这么做?我的意思是,在构建项目之后,除了其他文件之外,我们还获得了peerconnection_服务器和peerconnection_客户端。难道我们不能为WebRTC web应用程序使用其他服务器吗?链接到linkedin。无法查看您是否未通过身份验证我从给定链接安装了Java。但它不起作用,并给出了相同的错误。检查java_home是否在/etc/profile中设置它应该像java_home=/usr/lib/jvm/jdk version PATH=$PATH:$home/bin:$java_home/bin JRE_home=/usr/lib/JRE version PATH=$PATH:$home/bin:$JRE_home/bin导出java_home导出JRE\u home导出路径也是oracle jdk-6版本,7在开发android应用程序时遇到了一些问题感谢您的帮助,它确实起到了作用。我有一个小问题,为什么我们要这么做?我的意思是,在构建项目之后,除了其他文件之外,我们还获得了peerconnection_服务器和peerconnection_客户端。难道我们不能为WebRTC web应用程序使用其他服务器吗?链接到linkedin。无法查看您是否未通过身份验证