rjava dependent package installation Segmentation fault (core dumped)

后端 未结 2 1590
轮回少年
轮回少年 2020-12-30 13:05

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 star

相关标签:
2条回答
  • 2020-12-30 13:53

    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"

    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")

    0 讨论(0)
  • 2020-12-30 14:03

    This seems to be a bug in recent kernel versions, the same problem happens with other R libraries that involve Java, and also other software.

    See https://lists.ubuntu.com/archives/ubuntu-devel-discuss/2017-June/017507.html and https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1698919.

    This workaround does the trick for me:

    export _JAVA_OPTIONS="-Xss2560k -Xmx2g"
    
    0 讨论(0)
提交回复
热议问题