简体   繁体   English

R:install.package()未在CentOS 6.5上调用编译器

[英]R: install.package() is not calling compilers on CentOS 6.5

R version: 3.1.1 R版本:3.1.1

I want to install this package . 我要安装此软件包 I downloaded the source and put it under my home directory. 我下载了源并将其放在主目录下。 After that I ran install.packages("~/rEDM/",repos=NULL,type="source") to install from source. 之后,我运行install.packages("~/rEDM/",repos=NULL,type="source")从源进行安装。 The error message I got is: 我收到的错误消息是:

Installing package into ‘/d1/dwuab/R/x86_64-redhat-linux-gnu-library/3.1’
(as ‘lib’ is unspecified)
* installing *source* package ‘rEDM’ ...
** libs
I/usr/include/R -DNDEBUG  -I/usr/local/include -I"/d1/dwuab/R/x86_64-redhat-linux-gnu-library/3.1/Rcpp/include"  -I../inst/include    -c RcppExports.cpp -o RcppExports.o
/bin/sh: I/usr/include/R: No such file or directory
make: [RcppExports.o] Error 127 (ignored)
I/usr/include/R -DNDEBUG  -I/usr/local/include -I"/d1/dwuab/R/x86_64-redhat-linux-gnu-library/3.1/Rcpp/include"  -I../inst/include    -c block_lnlp.cpp -o block_lnlp.o
/bin/sh: I/usr/include/R: No such file or directory
make: [block_lnlp.o] Error 127 (ignored)
I/usr/include/R -DNDEBUG  -I/usr/local/include -I"/d1/dwuab/R/x86_64-redhat-linux-gnu-library/3.1/Rcpp/include"  -I../inst/include    -c forecast_machine.cpp -o forecast_machine.o
/bin/sh: I/usr/include/R: No such file or directory
make: [forecast_machine.o] Error 127 (ignored)
I/usr/include/R -DNDEBUG  -I/usr/local/include -I"/d1/dwuab/R/x86_64-redhat-linux-gnu-library/3.1/Rcpp/include"  -I../inst/include    -c lnlp.cpp -o lnlp.o
/bin/sh: I/usr/include/R: No such file or directory
make: [lnlp.o] Error 127 (ignored)
I/usr/include/R -DNDEBUG  -I/usr/local/include -I"/d1/dwuab/R/x86_64-redhat-linux-gnu-library/3.1/Rcpp/include"  -I../inst/include    -c xmap.cpp -o xmap.o
/bin/sh: I/usr/include/R: No such file or directory
make: [xmap.o] Error 127 (ignored)
-L/usr/local/lib64 -o rEDM.so RcppExports.o block_lnlp.o forecast_machine.o lnlp.o xmap.o -L/usr/lib64/R/lib -lR
/bin/sh: line 2: -L/usr/local/lib64: No such file or directory
make: *** [rEDM.so] Error 127
ERROR: compilation failed for package ‘rEDM’
* removing ‘/d1/dwuab/R/x86_64-redhat-linux-gnu-library/3.1/rEDM’
Warning message:
In install.packages("~/rEDM/", repos = NULL, type = "source") :
  installation of package ‘/ghome/dwuab/rEDM/’ had non-zero exit status

Something is very wrong here, as R did not call the compiler at all. 此处有些错误,因为R根本没有调用编译器。 The author of the package said this is due to R and/or GCC being misconfigured. 该软件包的作者说这是由于R和/或GCC配置错误。

My question : is there anyone who knows what the problem is? 我的问题 :有人知道问题出在哪里吗? Or how to troubleshoot the problem? 或如何解决问题?

Edit 1 : installing the package through zip file using command install.packages("./master.zip",repos=NULL,type="source") led to the following error message: 编辑1 :使用命令install.packages("./master.zip",repos=NULL,type="source")通过zip文件安装软件包install.packages("./master.zip",repos=NULL,type="source")导致出现以下错误消息:

Installing package into ‘/d1/dwuab/R/x86_64-redhat-linux-gnu-library/3.1’
(as ‘lib’ is unspecified)
Error in rawToChar(block[seq_len(ns)]) : 
  embedded nul in string: 'PK\003\004\n\0\0\0\0\0\x83h,H\0\0\0\0\0\0\0\0\0\0\0\0\f\0\t\0rEDM-master/UT\005\0\001Fj\x95VPK\003\004\n\0\0\0\b\0\x83h,H\x8ewq\xa1\030\0\0\0\034\0\0\0\031\0\t\0rEDM-master/.Rbuild'
Warning message:
In install.packages("./master.zip", repos = NULL, type = "source") :
  installation of package ‘./master.zip’ had non-zero exit status

Edit 2 : I have no root privilege on the machine. 编辑2 :我在计算机上没有root特权。

As a workaround, I used EasyBuild to compile and install R 3.2.1 with GCC 4.9.3. 解决方法是,我使用EasyBuild编译并安装带有GCC 4.9.3的R 3.2.1。 The whole compiling and installing process took me several days ... Now it works. 整个编译和安装过程花了我几天的时间...现在可以正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 R install.package 在未找到数据原始文件上失败 - R install.package fails on data-raw file not found R install.package() 使用 options() 参数化 download.file() - R install.package() paramaterize download.file() with options() 在CentOS 6.5上安装R软件包RMySQL失败,因为未找到mysql-connector-c - Failed install R package RMySQL on CentOS 6.5 “because mysql-connector-c was not found” Amazon EC2上RStudio上的install.package()不起作用。 软件包不适用于R版本3.3.3 - install.package() on RStudio on Amazon EC2 doesn't work. Package not available for R version 3.3.3 install.package期间发生错误:无法读取实验性R 3.5.0编写的未发布工作空间版本3 - Error during install.package : cannot read unreleased workspace version 3 written by experimental R 3.5.0 在CentOS 6.5中使用共享库选项重新安装R - Re-Install R with Shared library option in CentOS 6.5 为什么install.package() - 从头开始​​构建包? - Why is install.package() - building the package from scratch? CentOS 6.5 R安装依赖性 - CentOS 6.5 R Installation Dependencies 无法在 CentOS 上的 R 中安装 XML 包 - Unable to install XML package in R on CentOS 无法在 CentOS 7 上的 R Studio 中安装 RPostgreSQL 包 - Unable to install RPostgreSQL package in R Studio on CentOS 7
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM