OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio


Welcome Guest ( Log In | Register )

> R For Oz/gpe
post Nov 8 2006, 01:08 PM
Post #1

Group: Members
Posts: 21
Joined: 15-April 04
From: Brugg, Schweiz
Member No.: 2,858

after several tries and with help of lardman I finally managed to compile R.

R is a software package for statistical computing, more information you find here:

You can download a binary for testing on OZ/GPE here:

The ipk contains the basic R binary, the documentation, the reccomended modules and the gstat module. After installation you will have 70MB less space on your Z. Therefore I recommend to install it on SD or CF. ipkg-link does not work for big packages like R (there is an assigned entry in the bugtracker on this topic already). An easy solution is to set an symbolic link from the installation directory to /usr/local like this:
ln -s /media/card/packages/usr/local /usr/local

Unfortunately opening a graphics window will NOT work with the tiny libx11 included in OZ. You may want to replace the small libx11 with the full version. This will need 10MB of additional space on your root system (or on SD / CF). You will find version of libx11 that works with R at the above mentioned place.

If you need additional R-modules, you will have to compile them on your Z (see Dcoumentation on the R-homepage) and therefore need the native-sdk and several additional packages (see http://people.web.psi.ch/kosakowski/R-zaurus/README).

I tested the binary on my C760 and on qemu (with poky/OE), I have no idea if it works on other models ;-)

Happy computing, Georg
Go to the top of the page
+Quote Post
Start new topic
post Nov 29 2007, 11:58 PM
Post #2

Group: Members
Posts: 497
Joined: 17-January 04
From: St. Louis, USA
Member No.: 1,478

I tried to cross compile R-2.6.0 with OE for the past week but got stuck so far

I compiled the native R-2.6.0 version first.
set R=R-2.6.0 in EXTRA_OECONF to prevent do_configure quiting
use sed to set R_EXE to the native R binary in each makefile

I'm able to compile through until R packages in /src/library, where the following command is issued

$R_EXE --vanilla --slave -f /src/library/base/makebasedb.R

| Error in eval(expr, envir, enclos) :
| may already be using lazy loading on base
| Calls: local -> eval.parent -> eval -> eval -> eval -> eval
| Execution halted

The error was caused by lazy loading mechanism of the R binary on the host. --vanilla should suppress loading any package upon startup, however, seems there is no way to get around lazy loading (which means assuming a package is loaded). Anybody has idea how to get around this obstacle?
Go to the top of the page
+Quote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 25th April 2018 - 12:29 PM