在 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
请帮忙!