Skip to content

Build on mac os x #1

@ghost

Description

The build seems to assume installation of octave by home-brew because, the configure file says, it "works out of box."

It no longer works out of box; this may be related to flux in the home-brew fortran compiler. In addition, many of the octave suggested extensions (e.g., hdf5) are either currently missing from home-brew, or have compilation issues (e.g., openblas).

I've tried octave from home-brew, building octave myself, and the binary download. The only variant that works consistently and has the ordinary extensions is the binary download.

Even when octave is installed successfully, by home-brew or the binary (and if necessary directed to the binary home by configure directives), RcppOctave fails to install because it looks for liboctinterp.so, when both home-brew and the binary install only liboctinterp.dylib.

I suggest adjusting RcppOctave's build requirements so it looks for octave in multiple locations, including the current home-brew, build-from-source into /usr/local/, and works with the .dylib.

Here's the furthest I could get with compilation:

installing to /Library/Frameworks/R.framework/Versions/3.1/Resources/library/RcppOctave/libs
** R
** demo
** exec
** inst
** preparing package for lazy loading
** help
Error : /private/var/folders/s1/_v14lsc56tv44hm304m07vn40000gq/T/RtmpWBGJlA/R.INSTALL15e583ce00d60/RcppOctave/man/o_addpath.Rd:41: .onLoad failed in loadNamespace() for 'RcppOctave', details:
call: FUN(c("/usr/local/octave/3.8.0/lib/octave/3.8.0/liboctinterp.so",
error: unable to load shared object '/usr/local/octave/3.8.0/lib/octave/3.8.0/liboctinterp.so':
dlopen(/usr/local/octave/3.8.0/lib/octave/3.8.0/liboctinterp.so, 6): image not found
ERROR: installing Rd objects failed for package ‘RcppOctave’

  • removing ‘/Library/Frameworks/R.framework/Versions/3.1/Resources/library/RcppOctave’

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions