2

我在 Bluemix 中有一个 5 节点 BigInsights hadoop 集群。当我尝试在 BigInsights 集群中安装 H2O ai R 时出现错误。

install.packages("h2o", type="source", repos=(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 集群中安装 R 的“RCurl”包时,收到以下错误消息:

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

请帮助我解决问题,我们将不胜感激。

4

1 回答 1

5

看起来您正在尝试在 Linux 上安装。您需要先安装 libcurl 的开发文件。

例如

apt-get 安装 libcurl4-openssl-dev

或者

百胜安装 libcurl-devel

于 2016-08-16T17:32:03.467 回答