简体   繁体   English

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

[英]Error on first run of gclient sync --force on Ubuntu

After installing all the required software in correct order on Ubuntu, I ran the following 2 commands 在Ubuntu上以正确的顺序安装所有必需的软件后,我运行了以下2条命令

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

Latter one took some time and downloaded trunk and chromium_deps folders, however, it gave the following errors 后一个花了一些时间,下载了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

Please help! 请帮忙!

Your java must be oracle jdk. 您的Java必须是oracle jdk。 Also make sure your PATH for JAVA_HOME is set 还要确保设置了JAVA_HOME的PATH

Follow this link for instructions 点击此链接获取说明

Note:The link provided in this example for gclient config command is older one. 注意:本示例中为gclient config命令提供的链接是较旧的链接。 Follow your link gclient config http://webrtc.googlecode.com/svn/trunk 按照您的链接gclient配置http://webrtc.googlecode.com/svn/trunk

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM