2017-04-08 197 views
1

我正在嘗試構建ubuntu 16.04的h2o源代碼。
這裏是輸出:h2o在Ubuntu上構建失敗16.04

: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 

我已經安裝了所有先決條件。它能夠構建所有軟件包&在文檔中發生故障。我怎樣才能解決這個問題?

+0

我已經刪除了'java'標籤作爲這個問題並不涉及到Java。 –

回答

2

在回購更新你的問題,還有在碼頭工人 實現一個完整的H2O2開發環境基於16.04。在同一個文件夾中有一個Ubuntu 16.04安裝腳本。

http://github.com/h2oai/h2o-3/docker/setup-h2o-dev.sh

+0

這兩個答案都非常有用和正確,但是這更容易使用。 –

1

我有同樣的問題。要解決它,我 改名爲我的~/.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測試)的測試,因爲他們雖然我的機器上旋轉了多節點集羣失敗(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

,並與相關的輸出

+0

我沒有自定義我的R安裝。它只是一個直接的「apt」安裝,添加了一些需要的包。我如何確認它是否爲pdflatex問題? –

+0

恐怕我不知道。也許安裝rstudio?它帶來了大量的軟件,以便將Rmarkdown呈現爲PDF格式。在Rstudio中,生成一個簡單的Rmarkdown文件,並將其作爲PDF「編織」。如果這可行,你可能有一個工作的PDFlatex基礎架構。 – knb

+0

我能夠成功編織pdf。雖然需要幾個R包,但他們並沒有幫助將h2o問題解決:(至少pdflatex不是問題。 –