When I get to the Configuring Octave for Dynare on macOS part, my Octave Command Window shows:
>> addpath /Users/fabioazevedo/Desktop/Fabio/Dynare for Economics/Dynare/4.6.4/matlab
warning: addpath: Economics/Dynare/4.6.4/matlab: No such file or directory
warning: addpath: for: No such file or directory
warning: addpath: /Users/fabioazevedo/Desktop/Fabio/Dynare: No such file or directory
Which is quite wrong because I do have this file folder path…
Could you please help me configure Octave for Dynare?
That is strange. It indicates the mex-files are not present. How did you install Dynare? Via Homebrew? Do you have a log-file? @sebastien Do you know more?
I have just downloaded and reinstalled the Dynare from https://www.dynare.org/download/ When I open it in my macOS it presents the mex-files. But I do not see any octave-folder inside of it.
Do you think that I should reinstall via Homebrew? Do you have any link of step-by-step to do it?
See my Applications folder below with the Dynare files:
If you want to use Dynare with Octave, do not download this package, but rather use the one from Homebrew (see the quick start guide for instructions).
@jpfeifer
Please see the outputs that I received when I followed the steps from the link that you shared. Is there any chance that the issue is in my macOS Big Sur 11.3.1?
pkg install -forge io statistics control struct optim
warning: LFLAGS is deprecated and will be removed in a future version of Octave, use LDFLAGS instead
clang: error: invalid version number in ‘-mmacosx-version-min=11.3’
make: *** [slicotlibrary.a] Error 1
make: *** Waiting for unfinished jobs…
tar -xzf slicot.tar.gz
/usr/local/Cellar/octave/6.2.0_3/bin/mkoctfile-6.2.0 -Wall -Wno-deprecated-declarations control_helper_functions.cc
mkdir sltmp
mv slicot/src/.f ./sltmp
mv slicot/src_aux/.f ./sltmp
cp TG04BX.fortran ./sltmp/TG04BX.f
cp TB01ZD.fortran ./sltmp/TB01ZD.f
cd sltmp; /usr/local/Cellar/octave/6.2.0_3/bin/mkoctfile-6.2.0 -c *.f
error: pkg: error running ‘make’ for the control package.
error: called from
configure_make at line 110 column 9
install at line 196 column 7
pkg at line 568 column 9
STEP 3.1: “At the MATLAB or Octave command prompt, type the following to change the working directory”:
TENTATIVE #1
cd /Users/fabioazevedo/Desktop/Fabio/Dynare for Economics/Dynare_working_directory/work
error: Invalid call to cd. Correct usage is:
– cd DIR
– cd
– OLD_DIR = cd
– OLD_DIR = cd (DIR)
– chdir …
Additional help for built-in functions and operators is
available in the online version of the manual. Use the command
'doc ’ to search the manual index.
Help and information about Octave is also available on the WWW
at https://www.octave.org and via the help@octave.org
mailing list.
TENTATIVE #2
cd /Users/fabioazevedo/work
error: /Users/fabioazevedo/work: No such file or directory
And lastly,
STEP 3.2: “Then type the following to run the example model file”:
dynare example1
error: could not find any INDEX file in directory /Users/fabioazevedo/octave/statistics-1.4.2, try ‘pkg rebuild all’ to generate missing INDEX files
error: called from
describe>parse_pkg_idx at line 106 column 5
describe at line 68 column 40
pkg at line 690 column 43
user_has_octave_forge_package at line 22 column 13
dynare_config at line 103 column 5
dynare at line 66 column 12
As I did not noticed any further calculation or loading in my octave, I decided to write back to you.
This looks as if there is a problem with your Octave installation, not a Dynare problem. You would have to check how to correctly install it including the packages. See Octave for macOS - Octave
As mentioned above, the spaces are a problem. In Octave
cd /Users/fabioazevedo/Desktop/Fabio/Dynare for Economics/Dynare_working_directory/work
needs to be
cd "/Users/fabioazevedo/Desktop/Fabio/Dynare for Economics/Dynare_working_directory/work"