FreeBSD Port: R-2.6.1_1
funkyrod at gmail.com
funkyrod at gmail.com
Tue Apr 29 09:52:31 UTC 2008
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.
More information about the freebsd-ports
mailing list