Dynare 6.5 does not work with Octave on macOS Tahoe

Dynare requires certain toolboxes that need to be installed via `pkg install` in Octave; unfortunately, on my MacBook I am currently not able to install these. Is it just my machine (“I am holding it wrong”) or does anyone have a workaround?

pkg install -forge statistics
error: the following dependencies were unsatisfied:
statistics needs datatypes >= 1.1.0
pkg install -forge datatypes statistics
In file included from _datetime_.cc:25:
In file included from /opt/homebrew/Cellar/octave/10.3.0/include/octave-10.3.0/octave/../octave/oct.h:33:
In file included from /opt/homebrew/Cellar/octave/10.3.0/include/octave-10.3.0/octave/../octave/Matrix.h:34:
In file included from /opt/homebrew/Cellar/octave/10.3.0/include/octave-10.3.0/octave/../octave/mx-base.h:33:
In file included from /opt/homebrew/Cellar/octave/10.3.0/include/octave-10.3.0/octave/../octave/MatrixType.h:33:
In file included from /opt/homebrew/Cellar/octave/10.3.0/include/octave-10.3.0/octave/../octave/MSparse.h:31:
In file included from /opt/homebrew/Cellar/octave/10.3.0/include/octave-10.3.0/octave/../octave/Array-util.h:31:
In file included from /opt/homebrew/Cellar/octave/10.3.0/include/octave-10.3.0/octave/../octave/Array.h:37:
/opt/homebrew/Cellar/octave/10.3.0/include/octave-10.3.0/octave/../octave/Array-fwd.h:32:12: fatal error: ‘memory_resource’ file not found
32 | # include <memory_resource>
| ^~~~~~~~~~~~~~~~~
1 error generated.
make: *** [all] Error 1
/opt/homebrew/Cellar/octave/10.3.0/bin/mkoctfile-10.3.0 ‘-I ./date’ _datetime_.cc tz.cpp

error: pkg: error running ‘make’ for the datatypes package
error: called from
configure_make at line 117 column 9
install at line 202 column 7
pkg at line 619 column 9
```
See also the [issue on Dynare’s GitLab](Octave pkg installer on macOS: fatal error: 'memory_resource' file not found (#2001) · Issues · Dynare / dynare · GitLab)

Solved using the hints in the issue.