Skip to content
Back to formatted view

Raw Message

Message-ID: <CAA3Wa=sN5kK=CWZ3o4p3AWCTD2vijxgWcOeOwHNGEZksjanmVA@mail.gmail.com>
Date: 2012-08-27T14:33:04Z
From: John Laing
Subject: littler and rJava
In-Reply-To: <20539.31517.745872.251184@max.nulle.part>

Hi Dirk,

Thanks for the quick reply. Setting LD_LIBRARY_PATH does the trick, so
I can get by with that in my environment.

I would be happy to look into potential improvements. The ./configure
may work, but I installed littler through the debian package and thus
bypassed manual configuration. I'll look into that too; at the moment
autoconf is complaining.

Thanks again,
John


On Mon, Aug 27, 2012 at 9:50 AM, Dirk Eddelbuettel <edd at debian.org> wrote:
>
> John,
>
> I see this:
>
> edd at max:~$ r -e'require(rJava)'
> Loading required package: rJava
> Loading required package: methods
> 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
>
> but also
>
> edd at max:~$ locate libjvm.so
> /usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/cacao/libjvm.so
> /usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server/libjvm.so
> edd at max:~$ LD_LIBRARY_PATH="/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server" r -e'require(rJava)'
> Loading required package: rJava
> Loading required package: methods
> edd at max:~$
>
> Java is a bit of a moving target. We did add
>
> edd at max:~/svn/littler$ ./configure --help|grep java
>   --with-java-libs        Link littler to R's java libraries
> edd at max:~/svn/littler$
>
> a while back but that may not be sufficient.  Would you have time to poke
> around at your end how we could make this better (presuming that you want
> something more solid than the LD_LIBRARY_PATH adjustment you could also do on
> your system-side).
>
> Dirk
>
> --
> Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com