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

查看:73
本文介绍了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时遇到了相同的问题,并使用Kenneth提出的解决方案解决了该问题.就我而言,选项-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:

export _JAVA_OPTIONS="-Xss2560k"

export _JAVA_OPTIONS="-Xss2560k"

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

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:

options(java.parameters = "-Xss2560k")

options(java.parameters = "-Xss2560k")

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

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