[R] help with pROC installation on a Debian box (Rcpp related)

Luca Braglia lbraglia at gmail.com
Fri Mar 28 18:14:10 CET 2014


Hello,

> install.packages("pROC")
Installing package into
‘/home/l/R/x86_64-pc-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
provo con l'URL
'http://cran.mirror.garr.it/mirrors/CRAN/src/contrib/pROC_1.7.1.tar.gz'
Warning in download.file(url, destfile, method, mode = "wb", ...)
:
  connesso a 'cran.mirror.garr.it' sulla porta 80.
Warning in download.file(url, destfile, method, mode = "wb", ...)
:
  -> GET /mirrors/CRAN/src/contrib/pROC_1.7.1.tar.gz HTTP/1.0
Host: cran.mirror.garr.it
User-Agent: R (3.0.3 x86_64-pc-linux-gnu x86_64 linux-gnu)

Warning in download.file(url, destfile, method, mode = "wb", ...)
:
  <- HTTP/1.1 200 OK
Warning in download.file(url, destfile, method, mode = "wb", ...)
:
  <- Server: nginx/1.4.7
Warning in download.file(url, destfile, method, mode = "wb", ...)
:
  <- Date: Fri, 28 Mar 2014 17:10:44 GMT
Warning in download.file(url, destfile, method, mode = "wb", ...)
:
  <- Content-Type: text/plain
Warning in download.file(url, destfile, method, mode = "wb", ...)
:
  <- Content-Length: 91857
Warning in download.file(url, destfile, method, mode = "wb", ...)
:
  <- Last-Modified: Fri, 21 Feb 2014 04:39:58 GMT
Warning in download.file(url, destfile, method, mode = "wb", ...)
:
  <- Connection: close
Warning in download.file(url, destfile, method, mode = "wb", ...)
:
  <- ETag: "5306d89e-166d1"
Warning in download.file(url, destfile, method, mode = "wb", ...)
:
  <- Accept-Ranges: bytes
Warning in download.file(url, destfile, method, mode = "wb", ...)
:
  Code 200, content-type 'text/plain'
Content type 'text/plain' length 91857 bytes (89 Kb)
URL aperto
==================================================
downloaded 89 Kb

> tools:::.install_packages()
* installing *source* package ‘pROC’ ...
** package ‘pROC’ successfully unpacked and MD5 sums checked
Warning in writeLines(paste0(c(out[is_not_empty]), eor), file) :
  stringa carattere non valida nella conversione dell'output
** libs
g++ -I/usr/share/R/include -DNDEBUG
-I"/usr/lib/R/site-library/Rcpp/include"   -fpic  -O3 -pipe  -g
-c RcppExports.cpp -o RcppExports.o
g++ -I/usr/share/R/include -DNDEBUG
-I"/usr/lib/R/site-library/Rcpp/include"   -fpic  -O3 -pipe  -g
-c delong.cpp -o delong.o
g++ -I/usr/share/R/include -DNDEBUG
-I"/usr/lib/R/site-library/Rcpp/include"   -fpic  -O3 -pipe  -g
-c perfsAll.cpp -o perfsAll.o
g++ -shared -o pROC.so RcppExports.o delong.o perfsAll.o >
Rcpp:::LdFlags() > > -L/usr/lib/R/lib -lR
g++: error: >: File o directory non esistente
g++: error: Rcpp:::LdFlags(): File o directory non esistente
g++: error: >: File o directory non esistente
g++: error: >: File o directory non esistente
make: *** [pROC.so] Error 1
ERROR: compilation failed for package ‘pROC’
* removing ‘/home/l/R/x86_64-pc-linux-gnu-library/3.0/pROC’
Warning in install.packages("pROC") :
  installation of package ‘pROC’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/RtmpHyViHm/downloaded_packages’


warning says (freely translating): not valid string in output
conversion.

g++ errors say "file or directory not found"


It seems to be a compilation problem, but Rcpp version is > than
that required (0.10.5)

> packageVersion("Rcpp")
[1] ‘0.11.0’

A few infos...

                              sysname 
                              "Linux" 
                              release 
                       "3.10-2-amd64" 
                              version 
"#1 SMP Debian 3.10.7-1 (2013-08-17)" 
                             nodename 
                           "np350v5c" 
                              machine 
                             "x86_64" 
                                login 
                                  "l" 
                                 user 
                                  "l" 
                       effective_user 
                                  "l" 
> R.version
               _                           
platform       x86_64-pc-linux-gnu         
arch           x86_64                      
os             linux-gnu                   
system         x86_64, linux-gnu           
status                                     
major          3                           
minor          0.3                         
year           2014                        
month          03                          
day            06                          
svn rev        65126                       
language       R                           
version.string R version 3.0.3 (2014-03-06)
nickname       Warm Puppy                  


Any hint to solve the problem?

thank you,
  Luca



More information about the R-help mailing list