rjava依赖包安装分段错误(核心转储) [英] rjava dependent package installation Segmentation fault (core dumped)

查看:22
本文介绍了rjava依赖包安装分段错误(核心转储)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试重新安装以前能够安装和使用的软件包.在我的计算机意外重新启动后,我正在构建自己的包,然后我开始在加载 rpgraph 包时遇到问题.所以我决定卸载它并重新安装它.当我这样做时,我收到以下错误:

I am trying to reinstall a package that I was previously able to install and use. I was building a package of my own after my computer unexpectedly restarted and then I started to have problems loading the rpgraph package. So I decided to uninstall it and to reinstall it. When I did so I got the following error:

library(devtools)

library(rJava)
install_github("Albluca/rpgraph")


Downloading GitHub repo Albluca/rpgraph@master
from URL https://api.github.com/repos/Albluca/rpgraph/zipball/master
Installing rpgraph
Running command /usr/lib/R/bin/R
Arguments:
CMD
INSTALL
/tmp/Rtmp5OrtLL/devtools505a703b3ccd/Albluca-rpgraph-de04f96
--library=/home/gonzalo/R/x86_64-pc-linux-gnu-library/3.4
--install-tests

installing source package ‘rpgraph’ ...
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
Segmentation fault (core dumped)
ERROR: loading failed
removing ‘/home/gonzalo/R/x86_64-pc-linux-gnu-library/3.4/rpgraph’
Installation failed: run(bin, args = real_cmdargs,         stdout_line_callback = real_callback(stdout), stderr_line_callback =     real_callback(stderr), stdout_callback = real_block_callback,     stderr_callback = real_block_callback, echo_cmd = echo, echo = show,     spinner = spinner, error_on_status = fail_on_status, timeout = timeout) :     System command error`

我尝试从零开始重新安装 JAva 和 cran,但不知何故,我的系统中仍有一些东西无法安装包.另外,由于错误信息不是很丰富,我不知道如何缩小问题所在.

I tried reinstalling JAva and cran from zero but somehow there is something that remains in my system that avoids the package to be installed. Also, since the error is not very informative, I have no idea on how to narrow where the problem is.

感谢您提供的任何帮助.

Thanks for any help you can provide.

推荐答案

我在安装库 vanneulerwordnet 时遇到了同样的问题,并使用解决方案解决了问题肯尼斯提议.在我的情况下,选项 -Xss2560k 足以解决:

I experienced the same problem while installing the libraries vanneuler and wordnet and solved the issue using the solution proposed by Kenneth. In my case the option -Xss2560k was enough to solve:

导出_JAVA_OPTIONS="-Xss2560k"

此外:可以使用以下命令直接从 R 会话中设置 java 选项,而不是从终端运行导出命令:

In addition: instead of running the export command from the terminal the java option can be set directly from the R session with the following command:

选项(java.parameters = "-Xss2560k")

这篇关于rjava依赖包安装分段错误(核心转储)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆