Barnet Wagman
2011-Aug-06 04:19 UTC
[R] rJava on Debian squeeze (or other versions of Linux)?
Has anyone successfully installed rJava on Debian squeeze (or any other
version of linux)?
I keep getting the
... (JDK) is missing or not registered in R
error message when installing the package.
I've tried running 'R CMD javareconf', setting JAVA_HOME and editing
/etc/R/ldpaths by hand, but to no avail.
The problem might be related to the R_JAVA_LD_LIBRARY_PATH that's set in
/etc/R/ldpaths. Does anyone know what it's supposed to contain? I
haven't been able to find any documentation on it?
Searching the web, I've found many references to this problem, but no
solutions.
thanks,
bw
[[alternative HTML version deleted]]
Dirk Eddelbuettel
2011-Aug-06 13:16 UTC
[R] rJava on Debian squeeze (or other versions of Linux)?
On 5 August 2011 at 23:19, Barnet Wagman wrote:
| Has anyone successfully installed rJava on Debian squeeze (or any other
| version of linux)?
|
| I keep getting the
|
| ... (JDK) is missing or not registered in R
|
|
| error message when installing the package.
|
| I've tried running 'R CMD javareconf', setting JAVA_HOME and
editing
| /etc/R/ldpaths by hand, but to no avail.
|
| The problem might be related to the R_JAVA_LD_LIBRARY_PATH that's set in
| /etc/R/ldpaths. Does anyone know what it's supposed to contain? I
| haven't been able to find any documentation on it?
|
| Searching the web, I've found many references to this problem, but no
| solutions.
a) Did you try 'sudo apt-get install r-cran-rjava' ? This is after all
packaged in Debian
b) The Debian rjava package has 'openjdk-6-jdk' in its Build-Depends, do
you
have that installed if you try to build from source?
c) Next time please post on r-sig-debian.
Dirk
| thanks,
|
| bw
|
|
|
| [[alternative HTML version deleted]]
|
| ______________________________________________
| 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.
--
Gauss once played himself in a zero-sum game and won $50.
-- #11 at http://www.gaussfacts.com
Barnet Wagman
2011-Aug-06 14:59 UTC
[R] rJava on Debian squeeze (or other versions of Linux)?
On 8/6/11 9:37 AM, Dirk Eddelbuettel wrote:> | I'm going to be using rJava as part of a package I'm developing, so I > | need to be able to install it in a more generic way than the Debian > > Care to define "more generic way than Debian" ?^ I mean: (i) Install Java from Oracle (ii) run R CMD javareconf if necessary (iii) Install the rJava package from within R, i.e. install.package("rJava", ...) I'm trying to avoid using the Debian specific package.> > R CMD javareconf _should_ be all you need if you $PATH etc are properly setup.^ Is there any documentation on what javareconf wants in the $PATH? I've tried setting $JAVA_HOME to all all sorts of things without success.> > If not you may need more help from the R/Java list Simon runs. >^ I didn't know that Simon was currently running a list and haven't been able to find it. Do you have a url or subscription email address? thanks
Barnet Wagman
2011-Aug-06 15:15 UTC
[R] rJava on Debian squeeze (or other versions of Linux)?
On 8/6/11 9:37 AM, Dirk Eddelbuettel wrote:> | I'm going to be using rJava as part of a package I'm developing, so I > | need to be able to install it in a more generic way than the Debian > > Care to define "more generic way than Debian" ?^ I mean: (i) Install Java from Oracle (ii) run R CMD javareconf if necessary (iii) Install the rJava package from within R, i.e. install.package("rJava", ...) I'm trying to avoid using the Debian specific package.> > R CMD javareconf _should_ be all you need if you $PATH etc are properly setup.^ Is there any documentation on what javareconf wants in the $PATH? I've tried setting $JAVA_HOME to all all sorts of things without success.> > If not you may need more help from the R/Java list Simon runs. >^ I didn't know that Simon was currently running a list and haven't been able to find it. Do you have a url or subscription email address? thanks