Octave --with-java fails with: WARNING: 'aclocal-1.15' is missing on your system

(Itsayellow) #1

I’m trying to install octave --with-java via homebrew, but I can’t get past the following error that prevents the installation from completing:

==> Downloading https://ftp.gnu.org/gnu/octave/octave-4.2.1.tar.gz
Already downloaded: /Users/mclapp/Library/Caches/Homebrew/octave-4.2.1.tar.gz
==> ./configure --prefix=/usr/local/Cellar/octave/4.2.1_11 --disable-silent-rule
==> make all
Last 15 lines from /Users/mclapp/Library/Logs/Homebrew/octave/02.make:

preserving existing HG-ID file
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /private/tmp/octave-20180307-20357-dmxkt1/octave-4.2.1/build-aux/missing aclocal-1.15 -I m4
/private/tmp/octave-20180307-20357-dmxkt1/octave-4.2.1/build-aux/missing: line 81: aclocal-1.15: command not found
WARNING: 'aclocal-1.15' is missing on your system.
         You should only need it if you modified 'acinclude.m4' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'aclocal' program is part of the GNU Automake package:
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
make: *** [aclocal.m4] Error 127

There’s various tweaks online saying something about git and timestamps and running a script in the source directory to fix timestamps. However, homebrew doesn’t leave a source directory for me to play with (only the tar.gz is in the Cache dir) so I’m not sure how to troubleshoot this.

Any help is appreciated, thanks!



Quick fix:

  1. brew edit octave

  2. Add [system “autoreconf -f -i”] before [system “./configure”, *args] (line 103):

    system “./bootstrap” if build.head?
    –> system “autoreconf -f -i”
    system “./configure”, *args

  3. Save and try again [brew install octave].

Good luck!

(Jacob Ledbetter) #3

You should make a PR on the GitHub page for this @luisando.

(Itsayellow) #4

Hey thanks @luisando, that worked great!