[Rcppoctave-user] Cannot load RcppOctave.so onto Mac OS

Renaud Gaujoux renaud at mancala.cbio.uct.ac.za
Sat Nov 23 05:41:18 CET 2013


I thought of a work around for this: if deemed necessary by the configure
script based on the compiler used by Rcpp/R one would recompile Rcpp as a
static library, include it in the RcppOctave libs/ directory and link
against it. Que tal?

The path issue is actually easy to fix, I think.

Renaud

On Friday, November 22, 2013, Dominick Samperi wrote:

> On second thought the sw_vers trick will not work unless it
> is also implemented by the Rcpp package...
>
> On Fri, Nov 22, 2013 at 12:14 PM, Dominick Samperi <djsamperi at gmail.com<javascript:;>>
> wrote:
> > Renaud,
> >
> > Looks like you don't have a Mac yet.
> >
> > Under Mac OS X you can get the installed version using
> > sw_vers -productVersion
> >
> > The result is 10.9 for Mavericks.
> >
> > You can check for this and when true insert the definitions for
> > CC and CXX into the package Makevars.
> >
> > Yitping's problem might be due to the fact that Homebrew binaries
> > are installed into /usr/local/bin (already on his minimal path), but
> > MacPorts binaries go into /opt/local/bin (not on his minimal path).
> >
> > Dominick
> >
> >
> > On Fri, Nov 22, 2013 at 8:57 AM, Renaud Gaujoux
> > <renaud at mancala.cbio.uct.ac.za <javascript:;>> wrote:
> >>
> >>>
> >>> I have successfully compile, install and load RcppOctave on my Mac
> >>> (running Mavericks). In order to do this I have to reinstall Rcpp with
> >>> customized ~/.R/Makevars (CC=clang, etc).
> >>
> >>
> >> Nice!
> >>
> >>>
> >>> I can load the library from the command line R but not from the GUI. It
> >>> should be something related to the search path because octave-config
> could
> >>> not be found. I will post it here if I find a way. In the meantime, any
> >>> suggestions would be very welcome.
> >>
> >>
> >> Interesting. Can you please try directly loading the library with:
> >>
> >> library.dynam(RcppOctave, RcppOctave,
> dirname(path.package('RcppOctave)))
> >>
> >> I am wondering if the library could still load despite octave-config not
> >> being in the path.
> >>
> >> Please let me know if calling Octave functions work fine.
> >> Ideally, you would also run the following to make a complete check (from
> >> command line), you may need to install the Suggests dependencies:
> >>
> >> R CMD check --as-cran RcppOctave_0.13.3.tar.gz
> >>
> >> Thank you.
> >>
> >> Bests,
> >> Renaud
> >>
> >> _______________________________________________
> >> Rcppoctave-user mailing list
> >> Rcppoctave-user at lists.r-forge.r-project.org <javascript:;>
> >>
> http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcppoctave-user
> >>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcppoctave-user/attachments/20131123/eede3edd/attachment.html>


More information about the Rcppoctave-user mailing list