Spectutils needs Octave to be compiled and installed with the audioread function. In some earlier Octave versions (i.e., pre-4.2), audioread.m was not included in the precompiled Homebrew installation and had to be compiled from source. In the current (2016-12-20) Homebrew version, Octave must be built from source code and installed with the '--with-libsndfile' flag.
Here are some instructions to help you in installing the Homebrew version of Octave and Gnuplot. They may require system administrator privileges. Follow Homebrew's instructions and help messages for more info.
brew edit octave
depends_on "libsndfile" => :build depends_on "portaudio" => :buildand these from 'build.with' to 'build.without':
args << "--with-portaudio" if build.without? "portaudio" args << "--with-sndfile" if build.without? "sndfile"Then save changes and exit.
brew uninstall octave brew install octave --build-from-sourceThe latter command should show something like:
==> Installing octave from homebrew/science ==> Installing dependencies for homebrew/science/octave: libsndfile ==> Installing homebrew/science/octave dependency: libsndfile ==> Downloading https://homebrew.bintray.com/bottles/libsndfile-1.0.26.sierra.bottle.tar.gz ...
setenv('GNUTERM','qt') pkg load spectutils
pkg install spectutils-3.0.0.tgzor in a multiuser environment:
pkg install -global spectutils-3.0.0.tgz