[Rcppoctave-user] Cannot load RcppOctave.so onto Mac OS
Dominick Samperi
djsamperi at gmail.com
Sat Nov 23 07:21:35 CET 2013
Recompiling Rcpp as needed could work, but this is not a very elegant
solution, and the problem will probably disappear when the next version
of R is released. There has been much discussion on R-SIG-Mac about
Mavericks issues, and I suspect a fix will be included in the next release.
This could be as simple as using gcc/g++ for the compilers instead of
llvm-gcc-4.2/llvm-g++-4.2. Under Mavericks gcc/g++ are aliases for
clang/clang++, and for users of pre-Mavericks releases gcc/g++ can
also be used provided symbolic links are defined as needed.
I don't know what the plans are though.
On Fri, Nov 22, 2013 at 11:41 PM, Renaud Gaujoux
<renaud at mancala.cbio.uct.ac.za> wrote:
> 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>
>> 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> 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
>> >>
>> >> http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcppoctave-user
>> >>
>>
>
More information about the Rcppoctave-user
mailing list