RcppOctave icon indicating copy to clipboard operation
RcppOctave copied to clipboard

Unable to Install RcppOctave on MacOS 11.1 Big Sur

Open gloewing opened this issue 4 years ago • 1 comments

Thanks for all your work on this project. I am unable to install RcppOctave despite having successfully installed Octave on my Macbook Pro. I have downloaded the most recent archived version (0.18.1) of RcppOctave from CRAN (https://cran.r-project.org/src/contrib/Archive/RcppOctave/). But when I try to install RcppOctave, I get the following error:

utils.cc:21:10: fatal error: 'octave/config.h' file not found #include <octave/config.h> ^~~~~~~~~~~~~~~~~ 1 error generated. make[1]: *** [utils.oct] Error 1 make: *** [OctaveModule] Error 2 ERROR: compilation failed for package ‘RcppOctave’

Thanks so much in advance for any advice you can provide.

gloewing avatar Feb 25 '21 23:02 gloewing

@gloewing You should pass cppflag to the path where your Octave headers are located. For example, Macports installs those into /opt/local/include/octave-9.1.0. So passing -I/opt/local/include/octave-9.1.0 should solve the issue.

Let me try to write a port for it.

UPD. Ah, apparently it got renamed to octave-config.h. And maybe just unneeded altogether.

barracuda156 avatar Mar 27 '24 22:03 barracuda156