R-beta: linking c++ functions
kchan at stat.uiowa.edu
Mon Sep 15 04:38:03 CEST 1997
I am running R under Linux 2.0.28, with R installed following the
instructions that come with the R package, that is, using configure,
make and make install-help. I have only changed the config.site with
FC= option so to enable automatic detection of F77. I have no problems
linking some of the contributed libraries to R. It seems that the
current problem might be specific to C++ functions.
Quoting Dennis J. Murphy (dmurphy at cc.UManitoba.CA):
> Kung-Sik Chan writes:
> > > dyn.load('/usr/lib/libg++.so')
> > > library(chaos)
> > /usr/local/lib/R/bin/R.binary: '/usr/local/lib/R/bin/' is not an ELF file
> > Error in dyn.load(system.file("lib", name)) : unable to load shared library "/us
> > r/local/lib/R/bin/"
> > > traceback()
> >  "library.dynam(\"chaos.so\")" "eval(i, env)"
> >  "lib.source(file, env)" ".library(name, lib = lib.loc)"
> >  "library(chaos)"
> > I run R in the directory /usr/local/lib/R/bin, but the same error
> > message pops up if I run R in directory x, with the "/usr/local/lib/R/bin"
> > replaced by "x".
> I'm no expert on this subject, but an ELF file would mean that your shared
> library was compiled under Solaris 2.x, while the fact that the R binary is
> not an ELF file would mean that it was not compiled under Solaris 2.x; for
> example, it might be a SunOS4.1.3 binary, whose objects are not in ELF format.
> Since you didn't mention the platform under which you are working, this is a
> psuedorandom guess on my part: you might get a more profound answer from
> others by clearing mentioning the setup under which you're operating.
> Good luck,
> Dennis Murphy, PhD cand.|It's what you learn after you|(204) 453-5834/474-8930
> Statistics, U. Manitoba | know it all that counts. |dmurphy at cc.umanitoba.ca
> Winnipeg, MB Canada | John Wooden | On, Wisconsin!
> -------- When you come to a fork in the road, take it. Yogi Berra --------
r-help 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-help-request at stat.math.ethz.ch
More information about the R-help