From greg@warnes.net  Mon Jul 23 23:25:57 2001
From: greg@warnes.net (Gregory R. Warnes)
Date: Mon, 23 Jul 2001 18:25:57 -0400
Subject: [Rd] Installing RSPython with R 1.3.0
References: <3B5CA086.9423C8C7@warnes.net>
Message-ID: <3B5CA475.BFABD484@warnes.net>


To get RSPython installed on my debian test box, I had to make a couple
of changes not listed in
ftp://www.omegahat.org/pub/Omega/RSPython/FAQ.html 

1) I had to change $R_HOME/src/modules/X11 :

$(R_X11_la): $(R_X11_la_OBJECTS) $(R_X11_la_DEPENDENCIES)
        $(SHLIB_LINK) -o $@ $(R_X11_la_LDFLAGS) $(R_X11_la_OBJECTS)
$(R_X11_la_LIBADD) $(LIBS) 

to

$(R_X11_la): $(R_X11_la_OBJECTS) $(R_X11_la_DEPENDENCIES)
        $(SHLIB_LINK) -o $@ $(R_X11_la_LDFLAGS) $(R_X11_la_OBJECTS)
$(R_X11_la_LIBADD) $(LIBS) -L$(R_HOME)/bin -lR

2) I had the same link problem with ctest, so I changed

PKG_LIBS =  -lg2c -lm -L/usr/lib/gcc-lib/i386-linux/2.95.4 -lm

to

PKG_LIBS =  -lg2c -lm -L/usr/lib/gcc-lib/i386-linux/2.95.4 -lm
-L$(R_HOME)/bin -lR


3)  Will all libraries that get loaded into R inside of python require
this?


If I try to load other 'recommended' packages that include C code I get
dyn.load erros, EG:

>>> RS.call("library","splines")
Error in dyn.load(x, as.logical(local), as.logical(now)) :
        unable to load shared library
"/usr/local/lib/R/library/splines/libs/splines.so":
  /usr/local/lib/R/library/splines/libs/splines.so: undefined symbol:
R_NaN
Error in function (package, help, lib.loc = .lib.loc, character.only =
FALSE,  :
        .First.lib failed
In the local error handler
In the local error handler
Error in if (!is.numeric(name) || name != (pos <- as.integer(name))) { :
        missing value where logical needed
In the local error handler
In the local error handler
Error in pos.to.env(pos) : invalid argument
In the local error handler
In the local error handler
Error in objects(lib.pos) : invalid envir= argument
In the local error handler
['RSPython', 'ctest', 'base']

-Greg
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Installing RSPython with R 1.3.0
Gregory R. Warnes