首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >R-安装text2vec Ubuntu VM

R-安装text2vec Ubuntu VM
EN

Stack Overflow用户
提问于 2018-04-21 07:40:54
回答 2查看 170关注 0票数 0

我正在尝试在亚马逊网络服务的EC2免费层Ubuntu上安装text2vec。我收到这个错误消息:

代码语言:javascript
复制
> install.packages(c("text2vec"), type = "source")
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/text2vec_0.5.1.tar.gz'
Content type 'application/x-gzip' length 3486448 bytes (3.3 MB)
==================================================
downloaded 3.3 MB

* installing *source* package ‘text2vec’ ...
** package ‘text2vec’ successfully unpacked and MD5 sums checked
** libs
g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG  -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/usr/local/lib/R/site-library/RcppParallel/include" -I"/usr/local/lib/R/site-library/digest/include" -I"/usr/local/lib/R/site-library/sparsepp/include"    -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c GloveFitter.cpp -o GloveFitter.o
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
/usr/lib/R/etc/Makeconf:168: recipe for target 'GloveFitter.o' failed
make: *** [GloveFitter.o] Error 4
ERROR: compilation failed for package ‘text2vec’
* removing ‘/usr/local/lib/R/site-library/text2vec’

The downloaded source packages are in
    ‘/tmp/RtmpJU4eqr/downloaded_packages’
Warning message:
In install.packages(c("text2vec"), type = "source") :
  installation of package ‘text2vec’ had non-zero exit status

这是否与我的VM的RAM限制有关?我怎样才能安装软件包来避免这个错误?前提条件是我一分钱都不能丢。

EN

回答 2

Stack Overflow用户

发布于 2018-04-21 09:26:10

对于内存为1 gb的机器可能是这种情况,我没有测试过。然而,你可以尝试安装二进制版本--例如,阅读这里的https://cran.r-project.org/bin/linux/ubuntu/README.html (Ubuntu)。

票数 1
EN

Stack Overflow用户

发布于 2018-04-22 01:45:42

找到了解决方案。我在我的Ubuntu版本中使用了错误的存储库。当我应该使用Xenial时,我却在使用Trusy。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49950984

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档