Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Apr 2008 19:45:25 +1000
From:      funkyrod@gmail.com
To:        eric+fbports@vangyzen.net
Cc:        ports@FreeBSD.org
Subject:   FreeBSD Port: R-2.6.1_1
Message-ID:  <200804291945.26603.funkyrod@gmail.com>

next in thread | raw e-mail | index | archive | help
Some notes on the use of R with FreeBSD which may save other FreeBSD R users 
from frustration:

For rJava to work on FreeBSD it is necessary to run:

"kldload sem" (not part of the GENERIC  kernel by default)

Otherwise, .jinit() to start rJava will result in a bad system call. Sem is 
needed for posix semaphores to work.

Also to compile rJava I had to run:

R CMD javareconf

use the following settings:

setenv 
LD_LIBRARY_PATH /usr/local/lib/R/lib:/usr/local/jdk1.6.0/lib:/usr/local/jdk1.6.0/jre/lib/i386:/usr/local/jdk1.6.0/jre/lib/i386/client:/usr/local/lib/R/library/rJava/libs:/usr/local/jdk1.6.0/jre/lib/i386/server

setenv 
PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin:/usr/local/jdk1.6.0/bin
setenv 
CPLUS_INCLUDE_PATH /usr/local/jdk1.6.0/include:/usr/local/jdk1.6.0/include/freebsd:/mnt/rod/rJava/jri/src
setenv 
C_INCLUDE_PATH /usr/local/jdk1.6.0/include:/usr/local/jdk1.6.0/include/freebsd:/mnt/rod/rJava/jri/src

setenv MAKE gmake

and add

MAKE=gmake

to /usr/local/lib/R/etc/Makeconf

These may be more than the minimum steps.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804291945.26603.funkyrod>