Skip to content

Instantly share code, notes, and snippets.

@edwardw
Created February 26, 2013 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edwardw/5036535 to your computer and use it in GitHub Desktop.
Save edwardw/5036535 to your computer and use it in GitHub Desktop.
Install octave-forge miscellaneous package in homebrew octave

There are some mysterious errors when trying to install miscellaneous package from octave-forge:

error: variable length array of non-POD element type 'Array<octave_idx_type>'

etc. This happens to homebrew-ed octave 3.6.4.

The issue seems to have something to do with clang, the default compiler homebrew uses to install octave. The solution for now is to use gcc instead:

$ export CXX=llvm-g++-4.2 
$ octave 
octave> pkg install -forge miscellaneous 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment