在Rstudio / AWS Linux服务器上安装阅读器软件包

时间:2019-04-21 20:27:15

标签: r linux amazon-web-services

尝试在EC2实例上运行的Rstudio服务器上安装xml2readr软件包时,我不断收到类似的错误,如下所示:

Unable to install XML package in R on CentOS

我成功使用以下命令从终端安装了xml2软件包:

sudo yum install libxml2-devel

,然后在Rstudio服务器上安装和加载程序包。

但是我没有readr软件包的运气。它一直说它是在术语文件中下载的。另外,以下命令在终端中不起作用

sudo yum install libreadr-devel

如何安装readr软件包?似乎可以直接从Rstudio服务器安装某些软件包,而可以从终端直接安装其他软件包。

这是我在尝试安装`readr软件包时遇到的错误。

install.packages("readr")
Installing package into ‘/home/jessica/R/x86_64-redhat-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/readr_1.3.1.tar.gz'
Content type 'application/x-gzip' length 268853 bytes (262 KB)
==================================================
downloaded 262 KB

* installing *source* package ‘readr’ ...
** package ‘readr’ successfully unpacked and MD5 sums checked
** libs
g++ -m64  -I/usr/include/R -DNDEBUG  -I"/usr/lib64/R/library/Rcpp/include" -I"/usr/lib64/R/library/BH/include" -I/usr/local/include  -I. -Ircon -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic  -c Collector.cpp -o Collector.o
virtual memory exhausted: Cannot allocate memory
make: *** [Collector.o] Error 1
ERROR: compilation failed for package ‘readr’
* removing ‘/home/jessica/R/x86_64-redhat-linux-gnu-library/3.4/readr’
Warning in install.packages :
  installation of package ‘readr’ had non-zero exit status

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

0 个答案:

没有答案