Instalando o pROC no problema RHEL 6.2 e Rcpp

0

Tenho o R 2.15.2 instalado no Linux Red Hat 6.2 e quero instalar o pacote pROC, mas recebo um erro relacionado ao pacote Rcpp. Então tentei instalar o Rcpp sem sucesso. Como pode conseguir isso? Eu já instalei a versão mais recente do EPEL (epel-release-6-8.noarch.rpm). Obrigado!

> install.packages("pROC")
Installing package(s) into "/usr/lib64/R/library"

Warning: dependency "Rcpp" is not available
trying URL 'http://cran.parentingamerica.com/src/contrib/pROC_1.7.3.tar.gz'
Content type 'application/x-gzip' length 93082 bytes (90 Kb)
opened URL
==================================================
downloaded 90 Kb

* installing *source* package "pROC" ...
** package "pROC" successfully unpacked and MD5 sums checked
** libs
g++ -m64 -I/usr/include/R -DNDEBUG  -I/usr/local/include -I"/usr/lib64/R/library                                                     /Rcpp/include"   -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions                                                      -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic  -c RcppExports.                                                     cpp -o RcppExports.o
RcppExports.cpp: In function "SEXPREC* pROC_delongPlacementsCpp(SEXPREC*)":
RcppExports.cpp:15: error: "input_parameter" is not a member of "Rcpp::traits"
RcppExports.cpp:15: error: expected primary-expression before ">" token
RcppExports.cpp:15: error: "::type" has not been declared
RcppExports.cpp:15: error: expected ";" before "roc"
RcppExports.cpp:16: error: "roc" was not declared in this scope
RcppExports.cpp: In function "SEXPREC* pROC_rocUtilsPerfsAllC(SEXPREC*, SEXPREC*                                                     , SEXPREC*, SEXPREC*)":
RcppExports.cpp:30: error: "input_parameter" is not a member of "Rcpp::traits"
RcppExports.cpp:30: error: expected primary-expression before ">" token
RcppExports.cpp:30: error: "::type" has not been declared
RcppExports.cpp:30: error: expected ";" before "thresholds"
RcppExports.cpp:31: error: "input_parameter" is not a member of "Rcpp::traits"
RcppExports.cpp:31: error: expected primary-expression before ">" token
RcppExports.cpp:31: error: "::type" has not been declared
RcppExports.cpp:31: error: expected ";" before "controls"
RcppExports.cpp:32: error: "input_parameter" is not a member of "Rcpp::traits"
RcppExports.cpp:32: error: expected primary-expression before ">" token
RcppExports.cpp:32: error: "::type" has not been declared
RcppExports.cpp:32: error: expected ";" before "cases"
RcppExports.cpp:33: error: "input_parameter" is not a member of "Rcpp::traits"
RcppExports.cpp:33: error: expected primary-expression before ">" token
RcppExports.cpp:33: error: "::type" has not been declared
RcppExports.cpp:33: error: expected ";" before "direction"
RcppExports.cpp:34: error: "thresholds" was not declared in this scope
RcppExports.cpp:34: error: "controls" was not declared in this scope
RcppExports.cpp:34: error: "cases" was not declared in this scope
RcppExports.cpp:34: error: "direction" was not declared in this scope
make: *** [RcppExports.o] Error 1
ERROR: compilation failed for package "pROC"
* removing "/usr/lib64/R/library/pROC"

The downloaded source packages are in
        "/tmp/RtmpGVsd3V/downloaded_packages"
Updating HTML index of packages in '.Library'
Making packages.html  ... done
Warning message:
In install.packages("pROC") :
  installation of package "pROC" had non-zero exit status
>
> install.packages("Rcpp")
Installing package(s) into "/usr/lib64/R/library"
(as "lib" is unspecified)
Warning message:
package "Rcpp" is not available (for R version 2.15.2)
>
> R.version
platform       x86_64-redhat-linux-gnu
arch           x86_64
os             linux-gnu
system         x86_64, linux-gnu
status
major          2
minor          15.2
year           2012
month          10
day            26
svn rev        61015
language       R
version.string R version 2.15.2 (2012-10-26)
nickname       Trick or Treat


[root@*********:~]$ lsb_release -a
LSB Version:    :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description:    Red Hat Enterprise Linux Server release 6.2 
    
por MSS 26.09.2014 / 16:24

1 resposta

0

Infelizmente, você está executando uma versão bastante desatualizada do RHEL (eu entendo que não há mais suporte) que vem com uma versão bastante desatualizada de R .

A versão atual de Rcpp requer R >= 3.0.0 , o que você não tem. Assim, você tem duas possibilidades:

  1. Você atualiza sua instalação R para ter pelo menos R 3.0.0
  2. Você instala uma versão antiga de Rcpp
  3. Você atualiza sua versão do RHEL.

A opção 1 significa baixar e compilar a versão mais recente do R. Se você escolher a opção 2, terá que descobrir manualmente qual versão do Rcpp suporta o R 2.15.2 (parece ser o 0.10.5) e instalar manualmente ( R CMD INSTALL Rcpp-*.tar.gz ).

Eu recomendaria ir com a opção 3.

    
por 26.09.2014 / 17:41

Tags