[rkward-users] [Help] RE: Install from source on ML 2010.1

SourceForge.net noreply at sourceforge.net
Thu Dec 16 11:38:44 UTC 2010


The following forum message was posted by hmhxmu at http://sourceforge.net/projects/rkward/forums/forum/165574/topic/4014040:

Hi Thomas,
[code]
[mhudson at penguin ~]$ R CMD /usr/bin/rkward.bin
[/code]
R version 2.11.0 (2010-04-22)
Copyright (C) 2010 The R Foundation for Statistical Computing
ISBN 3-900051-07-0

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R. 

Simultaneously, the RKWard GUI opens with the comment:
"There was a problem starting the R backend. The following error(s) occurred:
- The 'rkward' R-library either could not be loaded at all, or not in the correct
version. This may lead to all sorts of errors, from single missing features
to complete failure to function. The most likely cause is that the last installation
did not place all files in the correct place. However, in some cases, left-overs
from a previous installation that was not cleanly removed may be the cause.
You should quit RKWard, now, and fix your installation. For help with that,
see http://p.sf.net/rkward/compiling.
-An unspecified error occurred that is not yet handled by RKWard. Likely RKWard
will not function properly. Please check your setup. "

[code]
[mhudson at penguin ~]$ /usr/local/bin/R CMD sh -c 'echo $R_VERSION'
[/code]
2.12.0
[code]
[mhudson at penguin ~]$ cat /usr/bin/rkward
[/code]
#!/bin/sh
# Shell wrapper for rkward executable.

export R_binary="/usr/local/bin/R"
[snip]
## Start rkward. Running through R CMD to set all the relevant R enviroment
variables
exec $R_binary CMD $debugger $0.bin "$@"

The problem appears to be with the R-library.
R was configured with:
[code]./configure  --prefix=/usr/lib64/R/R-2.12.0[/code]

following R's  R-admin.html
[quote]
2.4 Installation
 To ensure that the installed tree is usable by the right group of users, set
umask appropriately (perhaps to ‘022’) before unpacking the sources and
throughout the build process.
After 
 
     ./configure
     make
     make check

(or, when building outside the source, TOP_SRCDIR/configure, etc) have been
completed successfully, you can install the complete R tree to your system by
typing
     make install

This will install to the following directories: 
prefix/bin or bindir
the front-end shell script and other scripts and executables 
prefix/man/man1 or mandir/man1
the man page 
prefix/LIBnn/R or libdir/R
all the rest (libraries, on-line help system, ...). Here LIBnn is usually ‘lib’,
but may be ‘lib64’ on some 64-bit Linux systems. This is known as the R
home directory.
where prefix is determined during configuration (typically /usr/local) and can
be set by running configure with the option --prefix, as in
 
     ./configure --prefix=/where/you/want/R/to/go
[/quote]

However:
[code][root at penguin mhudson]# ls -l /usr/lib64/R/R-2.12.0
ls: cannot access /usr/lib64/R/R-2.12.0: No such file or directory
[/code]
Instead I see I created /usr/lib64/R-2.12.0 which remains empty.
So here is the problem with the R install? what to do?

hth
Malcolm





More information about the Rkward-users mailing list