Installing unstable dynare

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Installing unstable dynare

Postby mricci » Fri Mar 04, 2016 4:28 pm

Dear all,

I am currently trying to install the unstable version of Dynare for Matlab;
My operating system is OS X 10.10.3.
Following the instructions here:
http://www.dynare.org/DynareWiki/InstallOnMacOSX
I have installed Command Line Tools for Xcode, the latest version of MacTeX and Homebrew.

After that, I have typed in my console, commands like:
Code: Select all
‘brew install dynare --HEAD --without-check’

(trying also with some other variants)

To that command, I receive in response the following error message:

You must `brew link ghostscript` before homebrew/science/dynare can be installed


However, whenever typing ‘brew link ghostscript’ I receive this other error message:

Error: Could not symlink share/ghostscript/9.18
/usr/local/share/ghostscript is not writable.


Does anyone know where the problem is coming from and what I should to fix it?

Ps I have got Dynare 4.3.3 installed in my computer…I am wondering what will happen to it after installing the unstable version: will the two of them be available of will the unstable one update (and so replace) the previous version?
mricci
 
Posts: 35
Joined: Sat Aug 16, 2014 3:31 pm

Re: Installing unstable dynare

Postby HoutanBastani » Mon Mar 07, 2016 11:19 am

Hi,

Please post the output of the following:
Code: Select all
ls -la /usr/local/share/ghostscript && ls /usr/local/share/; brew doctor


Installing a new version of Dynare will not affect any other installation of Dynare.
Best,
Houtan
HoutanBastani
 
Posts: 197
Joined: Fri Jan 22, 2010 4:11 pm
Location: Paris, France

Re: Installing unstable dynare

Postby mricci » Mon Mar 07, 2016 5:27 pm

Dear Houtan,
Thank you very much for your message. Please find below the output returned by my console once typing the command you suggested:

total 0
drwxr-xr-x 4 root wheel 136 3 Mar 17:25 .
drwxrwxr-x 30 mricci admin 1020 3 Mar 17:45 ..
drwxrwxr-x 6 root wheel 204 14 Mar 2015 9.10
drwxr-xr-x 7 root wheel 238 4 May 2015 9.16
GraphicsMagick automake-1.15 ghostscript libtool pstoedit
ImageMagick-6 doc gnuplot lua tek2plot
aclocal emacs hdf5_examples man veclibfort
aclocal-1.15 fontconfig icons octave xml
appdata gcc-5.3.0 info ode
autoconf gdb libplot pic2plot
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!

Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
ghostscript
mricci
 
Posts: 35
Joined: Sat Aug 16, 2014 3:31 pm

Re: Installing unstable dynare

Postby HoutanBastani » Tue Mar 08, 2016 9:22 am

You have the wrong permissions in your
Code: Select all
/usr/local/share/
folder. To fix this, type:
Code: Select all
sudo chown -R "$USER":admin /usr/local/share
Best,
Houtan
HoutanBastani
 
Posts: 197
Joined: Fri Jan 22, 2010 4:11 pm
Location: Paris, France

Re: Installing unstable dynare

Postby mricci » Tue Mar 08, 2016 6:12 pm

Dear Houtan,

Thank you very much for your time and help.

Following your instructions, the installation can now be successfully launched.
However, unfortunately, it still happens to stop prematurely returning the error message at the end of the screenshot I report below:

Mattias-MacBook-Pro:~ mricci$ brew install dynare --HEAD --with-matlab=/Applications/MATLAB_R2014a.app --with-matlab-version=8.3 --without-check
==> Installing dynare from homebrew/science
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> Cloning https://github.com/DynareTeam/dynare.git
Updating /Library/Caches/Homebrew/dynare--git
==> Checking out branch master
==> autoreconf -si
==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/dynare/HEAD --with-matlab=/Applications/MATLAB_R2014a.app MATLAB_VERSION=8.3
==> make install
Last 15 lines from /Users/mricci/Library/Logs/Homebrew/dynare/03.make:
*yyout << endl;
^~~~~~
MacroFlex.ll:386:37: error: indirection requires pointer operand ('std::ostream' (aka 'basic_ostream<char>') invalid)
{ yylloc->lines(1); yylloc->step(); *yyout << endl; }
^~~~~~
MacroFlex.ll:405:5: error: indirection requires pointer operand ('const std::ostream' (aka 'const basic_ostream<char>') invalid)
*yyout << endl << "@#line \"" << *yylloc->begin.filename << "\" "
^~~~~~
3 errors generated.
make[4]: *** [libmacro_a-MacroFlex.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [install] Error 2
make[2]: *** [install-recursive] Error 1
make[1]: *** [install] Error 2
make: *** [install-recursive] Error 1

READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
https://github.com/Homebrew/homebrew-science/issues


Note that I have read the brew troubleshooting, therefore my brew has been updated and the command 'brew doctor' simply returns me a message saying that
'the system is ready to brew'.
Do you have any idea of where this problem is coming from and how to fix it?

Thank you very much for your time once again,

Mattia
mricci
 
Posts: 35
Joined: Sat Aug 16, 2014 3:31 pm

Re: Installing unstable dynare

Postby HoutanBastani » Fri Mar 11, 2016 10:53 am

The problem is that dynare needs to be updated to use the newer version of flex that comes with homebrew. This won't happen for a while. I have updated the homebrew-science dynare formula to use an older version of flex. You can either wait for the people at homebrew science to merge this pull request https://github.com/Homebrew/homebrew-science/pull/3414 or you can simply replace
Code: Select all
/usr/local/Library/Taps/homebrew/homebrew-science/dynare.rb
with the code found here https://raw.githubusercontent.com/houtanb/homebrew-science/9711afbbf24a4a7a9400a73892637f34bd0b7c2f/dynare.rb. Once you have replaced this file, simply execute
Code: Select all
brew install dynare <<options>>
as before
Best,
Houtan
HoutanBastani
 
Posts: 197
Joined: Fri Jan 22, 2010 4:11 pm
Location: Paris, France

Re: Installing unstable dynare

Postby guangjun » Sat Aug 13, 2016 6:20 am

Hi Houtan,

Like mdicci, I faced an error while installing unstable version of Dynare but using Octave;

I followed the instructions here: https://github.com/DynareTeam/dynare#mac-os-x

I have installed Command Line Tools for Xcode, as well as the latest version of MacTeX and Octave using Homebrew. (I have checked my Homebrew using brew update and brew doctor.) My operating system is OS X 10.11.6.

An error popped up after I run this command on Terminal to install dynare :cry: :
Code: Select all
brew install dynare --HEAD --without-check


Making install in mex/build/octave
Making install 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.0.3/include/octave-4.0.3/octave/.. -I/usr/local/Cellar/octave/4.0.3/include/octave-4.0.3/octave -I/usr/local/Cellar/octave/4.0.3/include -I../../../sources -fPIC -D_REENTRANT -L/usr/local/opt/suite-sparse/lib -lsuitesparseconfig -L/usr/local/opt/metis/lib -lmetis -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-20160813-81437-1j75bd1/mex/build/octave/mjdgges/$p $p; \
done
clang -fPIC -D_REENTRANT -L/usr/local/opt/suite-sparse/lib -lsuitesparseconfig -L/usr/local/opt/metis/lib -lmetis -Wall -Wno-parentheses -bundle -bundle_loader /usr/local/Cellar/octave/4.0.3/bin/octave-4.0.3 -L/usr/local/Cellar/octave/4.0.3/lib/octave/4.0.3 -L/usr/local/Cellar/octave/4.0.3/lib -L/usr/local/opt/readline/lib -lreadline -o mjdgges.mex mjdgges.o -loctinterp -loctave -L/usr/local/opt/veclibfort/lib -lveclibFort -lfftw3_threads -lfftw3 -lfftw3f_threads -lfftw3f -lm -L/usr/local/opt/readline/lib -L/usr/local/Cellar/gcc/6.1.0/lib/gcc/6/gcc/x86_64-apple-darwin15.5.0/6.1.0 -L/usr/local/Cellar/gcc/6.1.0/lib/gcc/6/gcc/x86_64-apple-darwin15.5.0/6.1.0/../../.. -lreadline -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]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1


Hope you can advise on this. Much appreciated!
guangjun
 
Posts: 1
Joined: Sat Aug 13, 2016 6:12 am

Re: Installing unstable dynare

Postby HoutanBastani » Wed Aug 17, 2016 10:45 am

What is the output when you type the following into Terminal
Code: Select all
ls -la /usr/local/bin/gfortran*
Best,
Houtan
HoutanBastani
 
Posts: 197
Joined: Fri Jan 22, 2010 4:11 pm
Location: Paris, France


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 7 guests