在Ubuntu上首次运行gclient sync --force时出错

时间:2013-10-26 06:27:30

标签: webrtc

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

$ gclient config http://webrtc.googlecode.com/svn/trunk
$ gclient sync --force

后期花了一些时间并下载了trunk和chromium_deps文件夹,但是,它出现了以下错误

________ 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

请帮忙!

1 个答案:

答案 0 :(得分:1)

你的java必须是oracle jdk。另外,请确保为JAVA_HOME设置了 PATH

Follow this link for instructions

注意:此示例中为 gclient config 命令提供的链接较旧。 关注你的链接 gclient config http://webrtc.googlecode.com/svn/trunk