1

在 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

请帮忙!

4

1 回答 1

1

你的java必须是oracle jdk。还要确保您的PATHfor JAVA_HOME 已设置

按照此链接获取说明

注意:此示例中提供的gclient config命令链接较旧。按照您的链接 gclient 配置http://webrtc.googlecode.com/svn/trunk

于 2013-10-28T09:49:11.617 回答