我正在尝试为 ubuntu 16.04 构建 h2o 源代码。
这是输出:
:h2o-r:classes UP-TO-DATE
:h2o-r:jar UP-TO-DATE
:h2o-r:assemble UP-TO-DATE
:h2o-r:getRVersion
:h2o-r:gitbranch
:h2o-r:pdflatex
:h2o-r:setProperties
Git Branch: master
R Version: 3.3.3
PDF LATEX: /usr/bin/pdflatex
:h2o-r:cpH2OAppJar
:h2o-r:setDevPackageFiles
:h2o-r:setPackageFiles
:h2o-r:buildPackageDocumentation FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':h2o-r:buildPackageDocumentation'.
> Process 'command 'R'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 33.713 secs
Task timings:
14.641 secs :h2o-assemblies:main:shadowJar
8.099 secs :h2o-bindings:runGenerateRESTAPIBindingsSrc
4.404 secs :h2o-py:buildDist
1.360 secs :h2o-web:installNpmPackages
0.780 secs :h2o-py:verifyDependencies
0.771 secs :h2o-bindings:compileJava
0.596 secs :h2o-assemblies:main:copyJar
1.585 secs All others
我已经安装了所有先决条件。它能够构建所有包并在文档中分解。我该如何解决这个问题?
在存储库中,有一个完整的 H2o2 开发环境在 Docker 中实现基于 16.04。在同一文件夹中有一个 Ubuntu 16.04 安装脚本。
http://github.com/h2oai/h2o-3/docker/setup-h2o-dev.sh
我遇到了同样的问题。为了解决它,我重命名了我的~/.Rprofile
文件(即使它是默认文件(
我的机器上有两个 R 版本,R 3.2.2 和 R 3.3.3,这混淆了构建脚本。
因此,为了使构建脚本更简单,我使用修改后的 PATH 变量成功运行了它!
(令人费解的是它仍然使用 R 3.2.2,尽管在/usr/bin 中是 R 3.3.3!但是,安装仍在继续(
export PATH=/home/knut/.virtualenvs/h2oai/bin:/home/knut/.nvm/versions/node/v6.9.4/bin:/usr/sbin:/usr/bin:/sbin:/bin && ./gradlew build -x test
我已经排除了(-x test(测试,因为它们在我的机器上启动多节点集群时失败(java内存不足(
结果:
:buildSrc:compileJava UP-TO-DATE
... many many UP-to-DATEs ....
:h2o-r:compileJava UP-TO-DATE
:h2o-r:compileGroovy UP-TO-DATE
:h2o-r:processResources UP-TO-DATE
:h2o-r:classes UP-TO-DATE
:h2o-r:jar UP-TO-DATE
:h2o-r:assemble UP-TO-DATE
:h2o-r:getRVersion
:h2o-r:gitbranch
:h2o-r:pdflatex
:h2o-r:setProperties
Git Branch: master
R Version: 3.2.2
PDF LATEX: /usr/bin/pdflatex
:h2o-r:cpH2OAppJar
:h2o-r:setDevPackageFiles
:h2o-r:setPackageFiles
:h2o-r:buildPackageDocumentation ####### here it exited previously, now continues
:h2o-r:buildPackageDocumentation took 3.828 secs
:h2o-r:genPDF
:h2o-r:genPDF took 4.432 secs
:h2o-r:cpPDF
:h2o-r:buildPKG
:h2o-r:buildPKG took 3.454 secs
:h2o-r:cpToR
:h2o-r:publishPKG
:h2o-r:untar
:h2o-r:cleaner
:h2o-r:build_rh2o
:h2o-r:check
:h2o-r:build
:h2o-scala_2.10:compileJava UP-TO-DATE
:h2o-scala_2.10:compileScala UP-TO-DATE
:h2o-scala_2.10:processResources UP-TO-DATE
:h2o-scala_2.10:classes UP-TO-DATE
:h2o-scala_2.10:jar UP-TO-DATE
:h2o-scala_2.10:assemble UP-TO-DATE
:h2o-scala_2.10:check
:h2o-scala_2.10:build
:h2o-scala_2.11:compileJava UP-TO-DATE
:h2o-scala_2.11:compileScala UP-TO-DATE
:h2o-scala_2.11:processResources UP-TO-DATE
:h2o-scala_2.11:classes UP-TO-DATE
:h2o-scala_2.11:jar UP-TO-DATE
:h2o-scala_2.11:assemble UP-TO-DATE
:h2o-scala_2.11:check
:h2o-scala_2.11:build
:h2o-test-accuracy:compileJava UP-TO-DATE
:h2o-test-accuracy:processResources UP-TO-DATE
:h2o-test-accuracy:classes UP-TO-DATE
:h2o-test-accuracy:jar UP-TO-DATE
:h2o-test-accuracy:assemble UP-TO-DATE
:h2o-test-accuracy:check
:h2o-test-accuracy:build
:h2o-test-integ:compileJava UP-TO-DATE
:h2o-test-integ:processResources UP-TO-DATE
:h2o-test-integ:classes UP-TO-DATE
:h2o-test-integ:jar UP-TO-DATE
:h2o-test-integ:assemble UP-TO-DATE
:h2o-test-integ:check
:h2o-test-integ:build
:h2o-web:assemble UP-TO-DATE
:h2o-web:check
:h2o-web:compileAndInstallDocFiles
:h2o-web:build
:h2o-assemblies:main:assemble
:h2o-assemblies:main:check
:h2o-assemblies:main:build
:h2o-hadoop:h2o-mapreduce-generic:compileJava UP-TO-DATE
:h2o-hadoop:h2o-mapreduce-generic:processResources UP-TO-DATE
:h2o-hadoop:h2o-mapreduce-generic:classes UP-TO-DATE
:h2o-hadoop:h2o-mapreduce-generic:jar UP-TO-DATE
:h2o-hadoop:h2o-mapreduce-generic:assemble UP-TO-DATE
:h2o-hadoop:h2o-mapreduce-generic:check
:h2o-hadoop:h2o-mapreduce-generic:build
:h2o-hadoop:h2o-yarn-generic:compileJava UP-TO-DATE
:h2o-hadoop:h2o-yarn-generic:processResources UP-TO-DATE
:h2o-hadoop:h2o-yarn-generic:classes UP-TO-DATE
:h2o-hadoop:h2o-yarn-generic:jar UP-TO-DATE
:h2o-hadoop:h2o-yarn-generic:assemble UP-TO-DATE
:h2o-hadoop:h2o-yarn-generic:check
:h2o-hadoop:h2o-yarn-generic:build
BUILD SUCCESSFUL
Total time: 31.37 secs
Task timings:
9.241 secs :h2o-assemblies:main:shadowJar
4.432 secs :h2o-r:genPDF
3.828 secs :h2o-r:buildPackageDocumentation
3.598 secs :h2o-bindings:runGenerateRESTAPIBindingsSrc
3.454 secs :h2o-r:buildPKG
2.083 secs :h2o-py:buildDist
0.922 secs :h2o-web:installNpmPackages
3.073 secs All others
然后我用R CMD INSTALL h2o-r/R/src/contrib/h2o_3.11.0.99999.tar.gz
将其安装到 R 3.3 中
如果此操作仍然不成功,请运行
./gradlew build -x test --info
并使用相关输出更新您的问题
你需要同步 R packags:
git clone https://github.com/h2oai/h2o-3.git
cd h2o-3
./gradlew syncSmalldata
./gradlew syncRPackages
./gradlew build
参考:https://github.com/h2oai/h2o-3