我對Ubuntu很新,目前運行12.04,我想在R
中安裝intamapInteractive
包。 我可以通過在R-Studio中的安裝包正常安裝它,因爲我一直做,但是當我運行無法安裝intamap包在R Ubuntu 12.04(關注java)
library (intamapInteractive)
返回此消息:
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/usr/lib/R/site-library/rJava/libs/rJava.so':
libjvm.so: cannot open shared object file: No such file or directory
Error: package or namespace load failed for ‘intamapInteractive’
我已閱讀並嘗試,但我離解決方案還很遙遠。
我的[R版本
[email protected]:~$ R --version
R version 3.0.2 (2013-09-25) -- "Frisbee Sailing"
Copyright (C) 2013 The R Foundation for Statistical Computing
Platform: i686-pc-linux-gnu (32-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
http://www.gnu.org/licenses/.
和我的Java,我今天已經安裝了大概錯誤的是:
[email protected]:~$ java -version
java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1ubuntu0.12.04.2)
OpenJDK Server VM (build 20.0-b12, mixed mode)
[email protected]:~$
任何幫助是極大的讚賞。
這是否解決了這個問題:'sudo R CMD javareconf'? – rcs
不,我沒有嘗試過,但保羅的答案解決了這個問題。感謝您的幫助。 – Irene