[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: control-3.1.0 released
From: |
sshah |
Subject: |
Re: control-3.1.0 released |
Date: |
Mon, 12 Mar 2018 16:35:41 -0700 (MST) |
I am using homebrew octave version 4.2.1_11, on mac os 10.13.3.
I have control 3.0.0 installed.
So to upgrade to 3.1.0 I used
pkg uninstall control
pkg install -forge control
It fails with
------------------------------
...
8 warnings generated.
clang: warning: argument unused during compilation: '-pthread'
[-Wunused-command-line-argument]
ld: warning: directory not found for option
'-L/usr/local/Cellar/gcc/7.3.0/lib/gcc/7/gcc/x86_64-apple-darwin17.3.0/7.3.0'
ld: warning: directory not found for option
'-L/usr/local/Cellar/gcc/7.3.0/lib/gcc/7/gcc/x86_64-apple-darwin17.3.0/7.3.0/../../..'
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make: *** [__control_slicot_functions__.oct] Error 1
...
pkg: error running `make' for the control package.
error: called from
configure_make at line 95 column 9
install at line 192 column 7
pkg at line 394 column 9
-----------------------------
This turns out to be an issue reported on homebrew-science
ld: library not found -lgfortran, during pkg install -forge control in
octave 4.2.0_2 (#4972)
Workaround (thanks to schoeps)
brew uninstall octave
brew install --build-from-source octave
This fails with
--------------------------
...
==> ./configure --prefix=/usr/local/Cellar/octave/4.2.1_11
--disable-silent-rules --enable-link-all-dependencies --enable-shared
--disable-static --d
==> make all
Last 15 lines from /Users/sunil/Library/Logs/Homebrew/octave/02.make:
all
preserving existing HG-ID file
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh
/private/tmp/octave-20180312-56717-h1391w/octave-4.2.1/build-aux/missing
aclocal-1.15 -I m4
/private/tmp/octave-20180312-56717-h1391w/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:
<http://www.gnu.org/software/automake>
It also requires GNU Autoconf, GNU m4 and Perl in order to run:
<http://www.gnu.org/software/autoconf>
<http://www.gnu.org/software/m4/>
<http://www.perl.org/>
make: *** [aclocal.m4] Error 127
READ THIS: https://docs.brew.sh/Troubleshooting
-----------------------------
I have filed a new issue on homebew-core #29167, though, it is not clear to
me if this is a problem with homebrew-core.
I did check that in the homebrew bottled version octave 4.2.1_11, (a
slightly modified) fortrandemo.f from octave documentation does run.
--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html