From owner-freebsd-ports@FreeBSD.ORG Tue Apr 29 09:52:31 2008 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA34B1065674 for ; Tue, 29 Apr 2008 09:52:31 +0000 (UTC) (envelope-from funkyrod@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6AADD8FC30 for ; Tue, 29 Apr 2008 09:52:31 +0000 (UTC) (envelope-from funkyrod@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so7980619waf.3 for ; Tue, 29 Apr 2008 02:52:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date:user-agent:cc:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; bh=t3RSnXE/qPtyFzfDy8iMhZuR9Wo1x0X1oumChSWYNEU=; b=o2SBDwO087gE8EAHK6MKwav6lNgMQyqFayn6Lp90/Qs9uUaxKaarwv33MBoBVqp/NvD66OMJCkRCvgZDpDFAUmoXXmrVfCXSFQQFTUenIVtZY9Chx6PrOR2Zb0tKVBEhXqwOcigI+kbvjVFOUwCnxnXNQkh0RHJlPX2MgtO2YKQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=uHBy9fXFd0dZSbZiuvAh86MsG0NcW9iLqBAdoZNJ4WM4pXzunb6v+PJ9Obu3q9YWOh8uBdWo9OcHO5YE7rsmUAUTAOR3DxZozH8QrVU8Jg/0b4zv7Blpgt4UrWGW/T7H9b3n6bLQzdve/GOZsVxuA6AEHqW7vri52wINg5PSI18= Received: by 10.115.72.17 with SMTP id z17mr7690180wak.223.1209462336683; Tue, 29 Apr 2008 02:45:36 -0700 (PDT) Received: from ?192.168.2.23? ( [124.176.109.231]) by mx.google.com with ESMTPS id v25sm1135765wah.36.2008.04.29.02.45.34 (version=SSLv3 cipher=OTHER); Tue, 29 Apr 2008 02:45:35 -0700 (PDT) From: funkyrod@gmail.com To: eric+fbports@vangyzen.net Date: Tue, 29 Apr 2008 19:45:25 +1000 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804291945.26603.funkyrod@gmail.com> Cc: ports@FreeBSD.org Subject: FreeBSD Port: R-2.6.1_1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Apr 2008 09:52:31 -0000 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.