在SUSElinux服务器上安装R软件包-FSELCETOR

时间:2018-06-20 10:56:21

标签: r rjava fselector

我有一个Suse linux服务器帐户,没有root访问权限。 我已经安装了R,现在我想使用FSELECTOR包。 我已开始执行以下步骤:

$ whereis java
java: /usr/bin/java /usr/lib64/java /etc/java /usr/share/java /usr/share/man/man1/java.1.gz
$ R CMD javareconf -e
$unset JAVA_HOME

然后我开始了R

Sys.setenv(JAVA_HOME='\\usr\\lib64\\java\\)
install.packages("FSelector")

在安装过程中,我收到以下消息:

Error: package or namespace load failed for ‘rJava’:
 .onLoad failed in loadNamespace() for 'rJava', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/home/korosig/R/x86_64-suse-linux-gnu-library/3.5/rJava/libs/rJava.so':
  libjvm.so: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/korosig/R/x86_64-suse-linux-gnu-library/3.5/rJava’
ERROR: dependency ‘rJava’ is not available for package ‘RWekajars’
* removing ‘/home/korosig/R/x86_64-suse-linux-gnu-library/3.5/RWekajars’
ERROR: dependencies ‘RWekajars’, ‘rJava’ are not available for package ‘RWeka’
* removing ‘/home/korosig/R/x86_64-suse-linux-gnu-library/3.5/RWeka’
ERROR: dependency ‘RWeka’ is not available for package ‘FSelector’
* removing ‘/home/korosig/R/x86_64-suse-linux-gnu-library/3.5/FSelector’

有想法吗?

我想安装rJava,但是我得到了相同的结果。

Sys.setenv(JAVA_HOME='\\usr\\lib64\\jvm\\java-10-openjdk-10')
install.packages("rJava")
Installing package into ‘/home/korosig/R/x86_64-suse-linux-gnu-library/3.5’
(as ‘lib’ is unspecified)

......

4 warnings
make[1]: Leaving directory '/tmp/RtmpTkyyj5/R.INSTALLb60f4541cb34/rJava/jri'
installing via 'install.libs.R' to /home/korosig/R/x86_64-suse-linux-gnu-library/3.5/rJava
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error: package or namespace load failed for ‘rJava’:
 .onLoad failed in loadNamespace() for 'rJava', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/home/korosig/R/x86_64-suse-linux-gnu-library/3.5/rJava/libs/rJava.so':
  libjvm.so: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/korosig/R/x86_64-suse-linux-gnu-library/3.5/rJava’

The downloaded source packages are in
        ‘/tmp/RtmpcwM6XO/downloaded_packages’
Warning message:
In install.packages("rJava") :
  installation of package ‘rJava’ had non-zero exit status

0 个答案:

没有答案