2016-08-16 47 views
1

在Bluemix中,我有一個5節點的BigInsights hadoop羣集。當我嘗試在BigInsights羣集中安裝H2O ai R時,出現錯誤。在Bluemix的BigInsights羣集中安裝H2O ai R程序包時出錯

install.packages( 「H 2 O」,類型= 「源極」,回購=(C( 「http://h2o-release.s3.amazonaws.com/h2o/rel-turing/3/R」)))

ERROR: dependencies ‘statmod’, ‘RCurl’, ‘jsonlite’ are not available for package ‘h2o’ 
* removing ‘/home/opus/R/x86_64-redhat-linux-gnu-library/3.3/h2o’ 

The downloaded source packages are in 
     ‘/tmp/RtmpJmcuyB/downloaded_packages’ 
Warning message: 
In install.packages("h2o", type = "source", repos = (c("http://h2o-release.s3.amazonaws.com/h2o/rel-turing/3/R"))) : 
    installation of package ‘h2o’ had non-zero exit status 

當嘗試在BigInsights簇安裝 'RCurl' R的包,收到錯誤消息:

trying URL 'https://cran.fhcrc.org/src/contrib/RCurl_1.95-4.8.tar.gz' 
Content type 'application/x-gzip' length 916934 bytes (895 KB) 
================================================== 
downloaded 895 KB 

* installing *source* package ‘bitops’ ... 
** package ‘bitops’ successfully unpacked and MD5 sums checked 
** libs 
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fpic -fPIC -c bit-ops.c -o bit-ops.o 
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fpic -fPIC -c cksum.c -o cksum.o 
gcc -m64 -std=gnu99 -shared -L/usr/lib64/R/lib -o bitops.so bit-ops.o cksum.o -L/usr/lib64/R/lib -lR 
installing to /home/opus/R/x86_64-redhat-linux-gnu-library/3.3/bitops/libs 
** R 
** preparing package for lazy loading 
** help 
*** installing help indices 
    converting help for package ‘bitops’ 
    finding HTML links ... done 
    bitAnd         html 
    bitFlip         html 
    bitShiftL        html 
    cksum         html 
** building package indices 
** testing if installed package can be loaded 
* DONE (bitops) 
* installing *source* package ‘RCurl’ ... 
** package ‘RCurl’ successfully unpacked and MD5 sums checked 
checking for curl-config... no 
Cannot find curl-config 
ERROR: configuration failed for package ‘RCurl’ 
* removing ‘/home/opus/R/x86_64-redhat-linux-gnu-library/3.3/RCurl’ 

The downloaded source packages are in 
     ‘/tmp/RtmpJmcuyB/downloaded_packages’ 
Warning message: 
In install.packages("RCurl") : 
    installation of package ‘RCurl’ had non-zero exit status 

請幫我解決這個問題,並幫助將非常感激。

+0

如果下面的答案是正確的,請接受它。謝謝! – TomKraljevic

回答

4

看起來你正試圖在Linux上安裝。 您需要先安裝libcurl的開發文件。

的apt-get安裝libcurl4-的OpenSSL開發

百勝安裝的libcurl-devel的