Installing Dynare for octave on macosx
Posted: Wed Nov 16, 2016 9:17 pm
Hello,
I am trying to install stable Dynare for octave according to the manual http://www.dynare.org/DynareWiki/InstallOnMacOSX. I tried: brew install dynare --HEAD --without-check and other options, but it gives the following error:
Last 15 lines from /Users/macbookpro/Library/Logs/Homebrew/dynare/03.make:
make[2]: Nothing to be done for `all-am'.
Making all in mex/build/octave
Making all in mjdgges
clang -DPACKAGE_NAME=\"dynare\" -DPACKAGE_TARNAME=\"dynare\" -DPACKAGE_VERSION=\"4.5-unstable\" -DPACKAGE_STRING=\"dynare\ 4.5-unstable\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"dynare\" -DVERSION=\"4.5-unstable\" -DHAVE_PTHREAD_PRIO_INHERIT=1 -DHAVE_PTHREAD=1 -DHAVE_BOOST=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBM=1 -DHAVE_LIBZ=1 -DHAVE_LIBHDF5=1 -DOCTAVE_MEX_FILE -DMEXEXT=\".mex\" -I. -I/usr/local/Cellar/octave/4.2.0/include/octave-4.2.0/octave/.. -I/usr/local/Cellar/octave/4.2.0/include/octave-4.2.0/octave -I/usr/local/Cellar/octave/4.2.0/include -I../../../sources -fPIC -D_REENTRANT -Wall -Wno-parentheses -c -o mjdgges.o `test -f '../../../sources/mjdgges/mjdgges.c' || echo './'`../../../sources/mjdgges/mjdgges.c
.././install-sh -c -d ../../../octave
cd ../../../octave && \
for p in mjdgges.mex; do \
ln -s -f /private/tmp/dynare-20161116-41076-1ncmapr/mex/build/octave/mjdgges/$p $p; \
done
clang -fPIC -D_REENTRANT -Wall -Wno-parentheses -bundle -bundle_loader /usr/local/Cellar/octave/4.2.0/bin/octave-4.2.0 -L/usr/local/Cellar/octave/4.2.0/lib/octave/4.2.0 -L/usr/local/Cellar/octave/4.2.0/lib -L/usr/local/opt/readline/lib -lreadline -L/usr/local/opt/suite-sparse/lib -lsuitesparseconfig -L/usr/local/opt/metis/lib -lmetis -o mjdgges.mex mjdgges.o -loctinterp -loctave -L/usr/local/opt/veclibfort/lib -lvecLibFort -L/usr/local/Cellar/fftw/3.3.5/lib -lfftw3_threads -lfftw3 -L/usr/local/Cellar/fftw/3.3.5/lib -lfftw3f_threads -lfftw3f -lm -L/usr/local/opt/readline/lib -L/usr/local/opt/suite-sparse/lib -L/usr/local/opt/metis/lib -L/usr/local/Cellar/gcc/6.2.0/lib/gcc/6/gcc/x86_64-apple-darwin16.0.0/6.2.0 -L/usr/local/Cellar/gcc/6.2.0/lib/gcc/6/gcc/x86_64-apple-darwin16.0.0/6.2.0/../../.. -lreadline -lsuitesparseconfig -lmetis -lgfortran -lquadmath -lm
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [mjdgges.mex] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
What can be done to fix the issue? I have already updated brew and ran brew doctor, and it didn't help.
I am trying to install stable Dynare for octave according to the manual http://www.dynare.org/DynareWiki/InstallOnMacOSX. I tried: brew install dynare --HEAD --without-check and other options, but it gives the following error:
Last 15 lines from /Users/macbookpro/Library/Logs/Homebrew/dynare/03.make:
make[2]: Nothing to be done for `all-am'.
Making all in mex/build/octave
Making all in mjdgges
clang -DPACKAGE_NAME=\"dynare\" -DPACKAGE_TARNAME=\"dynare\" -DPACKAGE_VERSION=\"4.5-unstable\" -DPACKAGE_STRING=\"dynare\ 4.5-unstable\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"dynare\" -DVERSION=\"4.5-unstable\" -DHAVE_PTHREAD_PRIO_INHERIT=1 -DHAVE_PTHREAD=1 -DHAVE_BOOST=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBM=1 -DHAVE_LIBZ=1 -DHAVE_LIBHDF5=1 -DOCTAVE_MEX_FILE -DMEXEXT=\".mex\" -I. -I/usr/local/Cellar/octave/4.2.0/include/octave-4.2.0/octave/.. -I/usr/local/Cellar/octave/4.2.0/include/octave-4.2.0/octave -I/usr/local/Cellar/octave/4.2.0/include -I../../../sources -fPIC -D_REENTRANT -Wall -Wno-parentheses -c -o mjdgges.o `test -f '../../../sources/mjdgges/mjdgges.c' || echo './'`../../../sources/mjdgges/mjdgges.c
.././install-sh -c -d ../../../octave
cd ../../../octave && \
for p in mjdgges.mex; do \
ln -s -f /private/tmp/dynare-20161116-41076-1ncmapr/mex/build/octave/mjdgges/$p $p; \
done
clang -fPIC -D_REENTRANT -Wall -Wno-parentheses -bundle -bundle_loader /usr/local/Cellar/octave/4.2.0/bin/octave-4.2.0 -L/usr/local/Cellar/octave/4.2.0/lib/octave/4.2.0 -L/usr/local/Cellar/octave/4.2.0/lib -L/usr/local/opt/readline/lib -lreadline -L/usr/local/opt/suite-sparse/lib -lsuitesparseconfig -L/usr/local/opt/metis/lib -lmetis -o mjdgges.mex mjdgges.o -loctinterp -loctave -L/usr/local/opt/veclibfort/lib -lvecLibFort -L/usr/local/Cellar/fftw/3.3.5/lib -lfftw3_threads -lfftw3 -L/usr/local/Cellar/fftw/3.3.5/lib -lfftw3f_threads -lfftw3f -lm -L/usr/local/opt/readline/lib -L/usr/local/opt/suite-sparse/lib -L/usr/local/opt/metis/lib -L/usr/local/Cellar/gcc/6.2.0/lib/gcc/6/gcc/x86_64-apple-darwin16.0.0/6.2.0 -L/usr/local/Cellar/gcc/6.2.0/lib/gcc/6/gcc/x86_64-apple-darwin16.0.0/6.2.0/../../.. -lreadline -lsuitesparseconfig -lmetis -lgfortran -lquadmath -lm
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [mjdgges.mex] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
What can be done to fix the issue? I have already updated brew and ran brew doctor, and it didn't help.