[R] install rJava in linux
Ista Zahn
istazahn at gmail.com
Fri Mar 5 16:23:05 CET 2010
On Fri, Mar 5, 2010 at 4:41 AM, Grześ <gregorio99 at gmail.com> wrote:
>
> Hi
> I'm a problem with installing "rJava" in Linux
>
> I have got in my system : java-sun, java-sun-tools, java-sun-jre
> but if I wont install rJava I got a problem like this:
>
>> install.packages("rJava", dependencies = TRUE)
> --- Please select a CRAN mirror for use in this session ---
> trying URL 'http://cran.mirroring.de/src/contrib/rJava_0.8-2.tar.gz'
> Content type 'application/x-gzip' length 471971 bytes (460 Kb)
> opened URL
> ==================================================
> downloaded 460 Kb
>
> * installing *source* package ‘rJava’ ...
<snip>
> configure: error: Java Development Kit (JDK) is missing or not registered in
> R
> Make sure R is configured with full Java support (including JDK). Run
> R CMD javareconf
> as root to add Java support to R.
>
> If you don't have root privileges, run
> R CMD javareconf -e
> to set all Java-related variables and then install rJava.
Start by following these instructions. Make sure you have some version
of JDK installed (use your distributions package management system to
install it if needed) then run R CMD javareconf as instructed above.
Best,
Ista
>
> ERROR: configuration failed for package ‘rJava’
> * removing ‘/usr/lib/R/library/rJava’
>
> The downloaded packages are in
> ‘/root/tmp/RtmpA0Qvcf/downloaded_packages’
> Updating HTML index of packages in '.Library'
> Warning message:
> In install.packages("rJava", dependencies = TRUE) :
> installation of package 'rJava' had non-zero exit status
>>
> What is wrong?
> --
> View this message in context: http://n4.nabble.com/install-rJava-in-linux-tp1579395p1579395.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Ista Zahn
Graduate student
University of Rochester
Department of Clinical and Social Psychology
http://yourpsyche.org
More information about the R-help
mailing list